home *** CD-ROM | disk | FTP | other *** search
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: PKZip Archive
(archive/zip ).
Confidence Program Detection Match Type Support
100%
dexvert
PKZip Archive (archive/zip)
magic
Supported
66%
dexvert
JAR Archive (archive/jar)
ext
Supported
100%
file
Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Feb 08 2005 22:20:02, uncompressed size 3573, method=store
default
99%
file
Zip archive, with extra data prepended
default
98%
file
data
default
48%
TrID
Sweet Home 3D design (generic)
default (weak)
32%
TrID
Mozilla Archive Format (gen)
default (weak)
18%
TrID
ZIP compressed archive
default
100%
dexmagic
PrintFox/Pagefox WEAK
default
100%
siegfried
x-fmt/263 ZIP Format
default
100%
lsar
Zip
default
100%
gt2
ZIP Archiv gefunden (Auflistung ist deaktiviert)
default
100%
detectItEasy
Archive: Zip(1.0)[100.0%,14 files]
default
100%
binwalkID
Zip archive data, at least v1.0 to extract, compressed size: 3573, uncompressed size: 3573, name: content/messenger-newsblog/toolbar-icon.xul
default
100%
xdgMime
application/zip
default
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 50 4b 03 04 0a 00 00 00 | 00 00 81 b2 48 32 6f d7 |PK......|....H2o.| |00000010| 8b ba f5 0d 00 00 f5 0d | 00 00 2b 00 00 00 63 6f |........|..+...co| |00000020| 6e 74 65 6e 74 2f 6d 65 | 73 73 65 6e 67 65 72 2d |ntent/me|ssenger-| |00000030| 6e 65 77 73 62 6c 6f 67 | 2f 74 6f 6f 6c 62 61 72 |newsblog|/toolbar| |00000040| 2d 69 63 6f 6e 2e 78 75 | 6c 3c 3f 78 6d 6c 20 76 |-icon.xu|l<?xml v| |00000050| 65 72 73 69 6f 6e 3d 22 | 31 2e 30 22 3f 3e 0a 3c |ersion="|1.0"?>.<| |00000060| 3f 78 6d 6c 2d 73 74 79 | 6c 65 73 68 65 65 74 20 |?xml-sty|lesheet | |00000070| 68 72 65 66 3d 22 63 68 | 72 6f 6d 65 3a 2f 2f 6d |href="ch|rome://m| |00000080| 65 73 73 65 6e 67 65 72 | 2d 6e 65 77 73 62 6c 6f |essenger|-newsblo| |00000090| 67 2f 73 6b 69 6e 2f 6e | 65 77 73 42 6c 6f 67 4f |g/skin/n|ewsBlogO| |000000a0| 76 65 72 6c 61 79 2e 63 | 73 73 22 20 74 79 70 65 |verlay.c|ss" type| |000000b0| 3d 22 74 65 78 74 2f 63 | 73 73 22 3f 3e 20 0a 0a |="text/c|ss"?> ..| |000000c0| 3c 21 44 4f 43 54 59 50 | 45 20 6f 76 65 72 6c 61 |<!DOCTYP|E overla| |000000d0| 79 20 53 59 53 54 45 4d | 20 22 63 68 72 6f 6d 65 |y SYSTEM| "chrome| |000000e0| 3a 2f 2f 6d 65 73 73 65 | 6e 67 65 72 2d 6e 65 77 |://messe|nger-new| |000000f0| 73 62 6c 6f 67 2f 6c 6f | 63 61 6c 65 2f 6e 65 77 |sblog/lo|cale/new| |00000100| 73 62 6c 6f 67 2e 64 74 | 64 22 3e 0a 0a 3c 6f 76 |sblog.dt|d">..<ov| |00000110| 65 72 6c 61 79 20 78 6d | 6c 6e 73 3d 22 68 74 74 |erlay xm|lns="htt| |00000120| 70 3a 2f 2f 77 77 77 2e | 6d 6f 7a 69 6c 6c 61 2e |p://www.|mozilla.| |00000130| 6f 72 67 2f 6b 65 79 6d | 61 73 74 65 72 2f 67 61 |org/keym|aster/ga| |00000140| 74 65 6b 65 65 70 65 72 | 2f 74 68 65 72 65 2e 69 |tekeeper|/there.i| |00000150| 73 2e 6f 6e 6c 79 2e 78 | 75 6c 22 3e 0a 0a 3c 73 |s.only.x|ul">..<s| |00000160| 63 72 69 70 74 20 74 79 | 70 65 3d 22 61 70 70 6c |cript ty|pe="appl| |00000170| 69 63 61 74 69 6f 6e 2f | 78 2d 6a 61 76 61 73 63 |ication/|x-javasc| |00000180| 72 69 70 74 22 3e 0a 20 | 20 66 75 6e 63 74 69 6f |ript">. | functio| |00000190| 6e 20 6f 70 65 6e 53 75 | 62 73 63 72 69 70 74 69 |n openSu|bscripti| |000001a0| 6f 6e 73 44 69 61 6c 6f | 67 28 61 52 53 53 53 65 |onsDialo|g(aRSSSe| |000001b0| 72 76 65 72 29 20 7b 0a | 0a 20 20 20 20 2f 2f 63 |rver) {.|. //c| |000001c0| 68 65 63 6b 20 66 6f 72 | 20 61 6e 20 65 78 69 73 |heck for| an exis| |000001d0| 74 69 6e 67 20 73 75 62 | 73 63 72 69 70 74 69 6f |ting sub|scriptio| |000001e0| 6e 73 20 77 69 6e 64 6f | 77 20 61 6e 64 20 66 6f |ns windo|w and fo| |000001f0| 63 75 73 20 69 74 2e 0a | 20 20 20 20 63 6f 6e 73 |cus it..| cons| |00000200| 74 20 6b 57 69 6e 64 6f | 77 4d 65 64 69 61 74 6f |t kWindo|wMediato| |00000210| 72 43 6f 6e 74 72 61 63 | 74 49 44 20 3d 20 22 40 |rContrac|tID = "@| |00000220| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 61 70 70 73 |mozilla.|org/apps| |00000230| 68 65 6c 6c 2f 77 69 6e | 64 6f 77 2d 6d 65 64 69 |hell/win|dow-medi| |00000240| 61 74 6f 72 3b 31 22 3b | 0a 20 20 20 20 63 6f 6e |ator;1";|. con| |00000250| 73 74 20 6b 57 69 6e 64 | 6f 77 4d 65 64 69 61 74 |st kWind|owMediat| |00000260| 6f 72 49 49 44 20 3d 20 | 43 6f 6d 70 6f 6e 65 6e |orIID = |Componen| |00000270| 74 73 2e 69 6e 74 65 72 | 66 61 63 65 73 2e 6e 73 |ts.inter|faces.ns| |00000280| 49 57 69 6e 64 6f 77 4d | 65 64 69 61 74 6f 72 3b |IWindowM|ediator;| |00000290| 0a 20 20 20 20 63 6f 6e | 73 74 20 6b 57 69 6e 64 |. con|st kWind| |000002a0| 6f 77 4d 65 64 69 61 74 | 6f 72 20 3d 20 43 6f 6d |owMediat|or = Com| |000002b0| 70 6f 6e 65 6e 74 73 2e | 63 6c 61 73 73 65 73 5b |ponents.|classes[| |000002c0| 6b 57 69 6e 64 6f 77 4d | 65 64 69 61 74 6f 72 43 |kWindowM|ediatorC| |000002d0| 6f 6e 74 72 61 63 74 49 | 44 5d 2e 67 65 74 53 65 |ontractI|D].getSe| |000002e0| 72 76 69 63 65 28 6b 57 | 69 6e 64 6f 77 4d 65 64 |rvice(kW|indowMed| |000002f0| 69 61 74 6f 72 49 49 44 | 29 3b 0a 20 20 20 20 76 |iatorIID|);. v| |00000300| 61 72 20 6c 61 73 74 53 | 75 62 73 63 72 69 70 74 |ar lastS|ubscript| |00000310| 69 6f 6e 57 69 6e 64 6f | 77 20 3d 20 6b 57 69 6e |ionWindo|w = kWin| |00000320| 64 6f 77 4d 65 64 69 61 | 74 6f 72 2e 67 65 74 4d |dowMedia|tor.getM| |00000330| 6f 73 74 52 65 63 65 6e | 74 57 69 6e 64 6f 77 28 |ostRecen|tWindow(| |00000340| 22 4d 61 69 6c 3a 4e 65 | 77 73 2d 42 6c 6f 67 53 |"Mail:Ne|ws-BlogS| |00000350| 75 62 73 63 72 69 70 74 | 69 6f 6e 73 22 29 3b 0a |ubscript|ions");.| |00000360| 20 20 0a 20 20 20 20 69 | 66 20 28 6c 61 73 74 53 | . i|f (lastS| |00000370| 75 62 73 63 72 69 70 74 | 69 6f 6e 57 69 6e 64 6f |ubscript|ionWindo| |00000380| 77 29 0a 20 20 20 20 20 | 20 6c 61 73 74 53 75 62 |w). | lastSub| |00000390| 73 63 72 69 70 74 69 6f | 6e 57 69 6e 64 6f 77 2e |scriptio|nWindow.| |000003a0| 66 6f 63 75 73 28 29 3b | 0a 20 20 20 20 65 6c 73 |focus();|. els| |000003b0| 65 20 0a 20 20 20 20 20 | 20 77 69 6e 64 6f 77 2e |e . | window.| |000003c0| 6f 70 65 6e 44 69 61 6c | 6f 67 28 22 63 68 72 6f |openDial|og("chro| |000003d0| 6d 65 3a 2f 2f 6d 65 73 | 73 65 6e 67 65 72 2d 6e |me://mes|senger-n| |000003e0| 65 77 73 62 6c 6f 67 2f | 63 6f 6e 74 65 6e 74 2f |ewsblog/|content/| |000003f0| 66 65 65 64 2d 73 75 62 | 73 63 72 69 70 74 69 6f |feed-sub|scriptio| |00000400| 6e 73 2e 78 75 6c 22 2c | 20 22 22 2c 0a 20 20 20 |ns.xul",| "",. | |00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000420| 20 20 20 20 20 22 63 65 | 6e 74 65 72 73 63 72 65 | "ce|nterscre| |00000430| 65 6e 2c 63 68 72 6f 6d | 65 2c 64 69 61 6c 6f 67 |en,chrom|e,dialog| |00000440| 3d 6e 6f 2c 72 65 73 69 | 7a 61 62 6c 65 22 2c 20 |=no,resi|zable", | |00000450| 7b 20 73 65 72 76 65 72 | 3a 20 61 52 53 53 53 65 |{ server|: aRSSSe| |00000460| 72 76 65 72 7d 29 3b 0a | 20 20 7d 0a 0a 20 20 66 |rver});.| }.. f| |00000470| 75 6e 63 74 69 6f 6e 20 | 6f 70 65 6e 53 75 62 73 |unction |openSubs| |00000480| 63 72 69 70 74 69 6f 6e | 73 44 69 61 6c 6f 67 46 |cription|sDialogF| |00000490| 72 6f 6d 46 6f 6c 64 65 | 72 50 61 6e 65 28 29 0a |romFolde|rPane().| |000004a0| 20 20 7b 0a 20 20 20 20 | 2f 2f 20 67 65 74 20 74 | {. |// get t| |000004b0| 68 65 20 69 6e 63 6f 6d | 69 6e 67 20 73 65 72 76 |he incom|ing serv| |000004c0| 65 72 20 66 6f 72 20 74 | 68 65 20 73 65 6c 65 74 |er for t|he selet| |000004d0| 65 64 20 66 6f 6c 64 65 | 72 0a 20 20 20 20 76 61 |ed folde|r. va| |000004e0| 72 20 73 65 6c 65 63 74 | 65 64 46 6f 6c 64 65 72 |r select|edFolder| |000004f0| 73 20 3d 20 47 65 74 53 | 65 6c 65 63 74 65 64 4d |s = GetS|electedM| |00000500| 73 67 46 6f 6c 64 65 72 | 73 28 29 3b 0a 20 20 20 |sgFolder|s();. | |00000510| 20 6f 70 65 6e 53 75 62 | 73 63 72 69 70 74 69 6f | openSub|scriptio| |00000520| 6e 73 44 69 61 6c 6f 67 | 28 73 65 6c 65 63 74 65 |nsDialog|(selecte| |00000530| 64 46 6f 6c 64 65 72 73 | 5b 30 5d 2e 73 65 72 76 |dFolders|[0].serv| |00000540| 65 72 29 3b 0a 20 20 7d | 0a 0a 20 20 2f 2f 20 53 |er);. }|.. // S| |00000550| 70 65 63 69 61 6c 20 63 | 61 73 65 20 61 74 74 65 |pecial c|ase atte| |00000560| 6d 70 74 73 20 74 6f 20 | 72 65 70 6c 79 2f 66 6f |mpts to |reply/fo| |00000570| 72 77 61 72 64 2f 65 64 | 69 74 20 61 73 20 6e 65 |rward/ed|it as ne| |00000580| 77 20 52 53 53 20 61 72 | 72 74 69 63 6c 65 73 0a |w RSS ar|rticles.| |00000590| 20 20 2f 2f 20 53 65 6e | 64 20 74 68 65 20 66 65 | // Sen|d the fe| |000005a0| 65 64 20 61 72 74 69 63 | 6c 65 20 55 52 4c 20 69 |ed artic|le URL i| |000005b0| 6e 73 74 65 61 64 20 6f | 66 20 74 72 79 69 6e 67 |nstead o|f trying| |000005c0| 20 74 6f 20 6c 6f 61 64 | 20 74 68 65 20 66 65 65 | to load| the fee| |000005d0| 64 20 69 6e 73 69 64 65 | 20 6f 66 0a 20 20 2f 2f |d inside| of. //| |000005e0| 20 61 6e 20 69 66 72 61 | 6d 65 2e 20 42 75 67 20 | an ifra|me. Bug | |000005f0| 23 32 35 38 32 37 38 2e | 0a 20 20 66 75 6e 63 74 |#258278.|. funct| |00000600| 69 6f 6e 20 6f 70 65 6e | 43 6f 6d 70 6f 73 65 57 |ion open|ComposeW| |00000610| 69 6e 64 6f 77 46 6f 72 | 52 53 53 41 72 74 69 63 |indowFor|RSSArtic| |00000620| 6c 65 28 6d 65 73 73 61 | 67 65 49 44 2c 20 6d 73 |le(messa|geID, ms| |00000630| 67 48 64 72 2c 20 74 79 | 70 65 29 0a 20 20 7b 0a |gHdr, ty|pe). {.| |00000640| 20 20 20 20 2f 2f 20 63 | 6f 6e 76 65 72 74 20 6f | // c|onvert o| |00000650| 75 72 20 6d 65 73 73 61 | 67 65 49 44 20 69 6e 74 |ur messa|geID int| |00000660| 6f 20 61 20 75 72 6c 2e | 2e 0a 20 20 20 20 76 61 |o a url.|.. va| |00000670| 72 20 63 6f 6e 74 65 6e | 74 42 61 73 65 20 3d 20 |r conten|tBase = | |00000680| 6d 65 73 73 61 67 65 49 | 44 2e 72 65 70 6c 61 63 |messageI|D.replac| |00000690| 65 28 22 40 6c 6f 63 61 | 6c 68 6f 73 74 2e 6c 6f |e("@loca|lhost.lo| |000006a0| 63 61 6c 64 6f 6d 61 69 | 6e 22 2c 20 22 22 29 3b |caldomai|n", "");| |000006b0| 0a 0a 20 20 20 20 76 61 | 72 20 70 61 72 61 6d 73 |.. va|r params| |000006c0| 20 3d 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 63 6c | = Compo|nents.cl| |000006d0| 61 73 73 65 73 5b 22 40 | 6d 6f 7a 69 6c 6c 61 2e |asses["@|mozilla.| |000006e0| 6f 72 67 2f 6d 65 73 73 | 65 6e 67 65 72 63 6f 6d |org/mess|engercom| |000006f0| 70 6f 73 65 2f 63 6f 6d | 70 6f 73 65 70 61 72 61 |pose/com|posepara| |00000700| 6d 73 3b 31 22 5d 0a 20 | 20 20 20 20 20 20 20 20 |ms;1"]. | | |00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000720| 20 20 2e 63 72 65 61 74 | 65 49 6e 73 74 61 6e 63 | .creat|eInstanc| |00000730| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int| |00000740| 65 72 66 61 63 65 73 2e | 6e 73 49 4d 73 67 43 6f |erfaces.|nsIMsgCo| |00000750| 6d 70 6f 73 65 50 61 72 | 61 6d 73 29 3b 0a 20 20 |mposePar|ams);. | |00000760| 20 20 69 66 20 28 70 61 | 72 61 6d 73 29 0a 20 20 | if (pa|rams). | |00000770| 20 20 7b 0a 20 20 20 20 | 20 20 70 61 72 61 6d 73 | {. | params| |00000780| 2e 63 6f 6d 70 6f 73 65 | 46 69 65 6c 64 73 20 3d |.compose|Fields =| |00000790| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 63 6c 61 73 | Compone|nts.clas| |000007a0| 73 65 73 5b 27 40 6d 6f | 7a 69 6c 6c 61 2e 6f 72 |ses['@mo|zilla.or| |000007b0| 67 2f 6d 65 73 73 65 6e | 67 65 72 63 6f 6d 70 6f |g/messen|gercompo| |000007c0| 73 65 2f 63 6f 6d 70 6f | 73 65 66 69 65 6c 64 73 |se/compo|sefields| |000007d0| 3b 31 27 5d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |;1']. | | |000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2e 63 72 65 | | .cre| |00000800| 61 74 65 49 6e 73 74 61 | 6e 63 65 28 43 6f 6d 70 |ateInsta|nce(Comp| |00000810| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface| |00000820| 73 2e 6e 73 49 4d 73 67 | 43 6f 6d 70 46 69 65 6c |s.nsIMsg|CompFiel| |00000830| 64 73 29 3b 0a 20 20 20 | 20 20 20 69 66 20 28 70 |ds);. | if (p| |00000840| 61 72 61 6d 73 2e 63 6f | 6d 70 6f 73 65 46 69 65 |arams.co|mposeFie| |00000850| 6c 64 73 29 0a 20 20 20 | 20 20 20 7b 0a 20 20 20 |lds). | {. | |00000860| 20 20 20 20 20 70 61 72 | 61 6d 73 2e 63 6f 6d 70 | par|ams.comp| |00000870| 6f 73 65 46 69 65 6c 64 | 73 2e 62 6f 64 79 20 3d |oseField|s.body =| |00000880| 20 63 6f 6e 74 65 6e 74 | 42 61 73 65 3b 0a 20 20 | content|Base;. | |00000890| 20 20 20 20 20 20 76 61 | 72 20 73 75 62 6a 65 63 | va|r subjec| |000008a0| 74 20 3d 20 6d 73 67 48 | 64 72 2e 6d 69 6d 65 32 |t = msgH|dr.mime2| |000008b0| 44 65 63 6f 64 65 64 53 | 75 62 6a 65 63 74 3b 0a |DecodedS|ubject;.| |000008c0| 20 20 20 20 20 20 20 20 | 69 66 20 28 74 79 70 65 | |if (type| |000008d0| 20 3d 3d 20 6d 73 67 43 | 6f 6d 70 6f 73 65 54 79 | == msgC|omposeTy| |000008e0| 70 65 2e 52 65 70 6c 79 | 20 0a 20 20 20 20 20 20 |pe.Reply| . | |000008f0| 20 20 20 20 20 20 7c 7c | 20 74 79 70 65 20 3d 3d | ||| type ==| |00000900| 20 6d 73 67 43 6f 6d 70 | 6f 73 65 54 79 70 65 2e | msgComp|oseType.| |00000910| 52 65 70 6c 79 41 6c 6c | 20 0a 20 20 20 20 20 20 |ReplyAll| . | |00000920| 20 20 20 20 20 20 7c 7c | 20 74 79 70 65 20 3d 3d | ||| type ==| |00000930| 20 6d 73 67 43 6f 6d 70 | 6f 73 65 54 79 70 65 2e | msgComp|oseType.| |00000940| 52 65 70 6c 79 54 6f 53 | 65 6e 64 65 72 20 0a 20 |ReplyToS|ender . | |00000950| 20 20 20 20 20 20 20 20 | 20 20 20 7c 7c 20 74 79 | | || ty| |00000960| 70 65 20 3d 3d 20 6d 73 | 67 43 6f 6d 70 6f 73 65 |pe == ms|gCompose| |00000970| 54 79 70 65 2e 52 65 70 | 6c 79 54 6f 47 72 6f 75 |Type.Rep|lyToGrou| |00000980| 70 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7c |p . | || |00000990| 7c 20 74 79 70 65 20 3d | 3d 20 6d 73 67 43 6f 6d || type =|= msgCom| |000009a0| 70 6f 73 65 54 79 70 65 | 2e 52 65 70 6c 79 54 6f |poseType|.ReplyTo| |000009b0| 53 65 6e 64 65 72 41 6e | 64 47 72 6f 75 70 29 0a |SenderAn|dGroup).| |000009c0| 20 20 20 20 20 20 20 20 | 20 20 73 75 62 6a 65 63 | | subjec| |000009d0| 74 20 3d 20 27 52 65 3a | 20 27 20 2b 20 73 75 62 |t = 'Re:| ' + sub| |000009e0| 6a 65 63 74 3b 0a 20 20 | 20 20 20 20 20 20 65 6c |ject;. | el| |000009f0| 73 65 20 69 66 20 28 74 | 79 70 65 20 3d 3d 20 6d |se if (t|ype == m| |00000a00| 73 67 43 6f 6d 70 6f 73 | 65 54 79 70 65 2e 46 6f |sgCompos|eType.Fo| |00000a10| 72 77 61 72 64 49 6e 6c | 69 6e 65 20 7c 7c 20 74 |rwardInl|ine || t| |00000a20| 79 70 65 20 3d 3d 20 6d | 73 67 43 6f 6d 70 6f 73 |ype == m|sgCompos| |00000a30| 65 54 79 70 65 2e 46 6f | 72 77 61 72 64 41 73 41 |eType.Fo|rwardAsA| |00000a40| 74 74 61 63 68 6d 65 6e | 74 29 0a 20 20 20 20 20 |ttachmen|t). | |00000a50| 20 20 20 20 20 73 75 62 | 6a 65 63 74 20 3d 20 27 | sub|ject = '| |00000a60| 5b 46 77 64 3a 20 27 20 | 2b 20 73 75 62 6a 65 63 |[Fwd: ' |+ subjec| |00000a70| 74 20 2b 20 27 5d 27 3b | 0a 20 20 20 20 20 20 20 |t + ']';|. | |00000a80| 20 70 61 72 61 6d 73 2e | 63 6f 6d 70 6f 73 65 46 | params.|composeF| |00000a90| 69 65 6c 64 73 2e 73 75 | 62 6a 65 63 74 20 3d 20 |ields.su|bject = | |00000aa0| 73 75 62 6a 65 63 74 3b | 0a 20 20 20 20 20 20 20 |subject;|. | |00000ab0| 20 70 61 72 61 6d 73 2e | 63 6f 6d 70 6f 73 65 46 | params.|composeF| |00000ac0| 69 65 6c 64 73 2e 63 68 | 61 72 61 63 74 65 72 53 |ields.ch|aracterS| |00000ad0| 65 74 20 3d 20 6d 73 67 | 48 64 72 2e 43 68 61 72 |et = msg|Hdr.Char| |00000ae0| 73 65 74 3b 0a 20 20 20 | 20 20 20 20 20 70 61 72 |set;. | par| |00000af0| 61 6d 73 2e 62 6f 64 79 | 49 73 4c 69 6e 6b 20 3d |ams.body|IsLink =| |00000b00| 20 74 72 75 65 3b 0a 0a | 20 20 20 20 20 20 20 20 | true;..| | |00000b10| 69 66 20 28 6d 73 67 43 | 6f 6d 70 6f 73 65 53 65 |if (msgC|omposeSe| |00000b20| 72 76 69 63 65 29 20 7b | 0a 20 20 20 20 20 20 20 |rvice) {|. | |00000b30| 20 20 20 74 72 79 20 7b | 0a 20 20 20 20 20 20 20 | try {|. | |00000b40| 20 20 20 20 20 70 61 72 | 61 6d 73 2e 69 64 65 6e | par|ams.iden| |00000b50| 74 69 74 79 20 3d 20 6d | 73 67 43 6f 6d 70 6f 73 |tity = m|sgCompos| |00000b60| 65 53 65 72 76 69 63 65 | 2e 64 65 66 61 75 6c 74 |eService|.default| |00000b70| 49 64 65 6e 74 69 74 79 | 3b 0a 20 20 20 20 20 20 |Identity|;. | |00000b80| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | | |00000b90| 63 61 74 63 68 20 28 65 | 78 29 20 7b 0a 20 20 20 |catch (e|x) {. | |00000ba0| 20 20 20 20 20 20 20 20 | 20 70 61 72 61 6d 73 2e | | params.| |00000bb0| 69 64 65 6e 74 69 74 79 | 20 3d 20 6e 75 6c 6c 3b |identity| = null;| |00000bc0| 0a 20 20 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |. | }. | |00000bd0| 20 20 20 20 20 20 20 6d | 73 67 43 6f 6d 70 6f 73 | m|sgCompos| |00000be0| 65 53 65 72 76 69 63 65 | 2e 4f 70 65 6e 43 6f 6d |eService|.OpenCom| |00000bf0| 70 6f 73 65 57 69 6e 64 | 6f 77 57 69 74 68 50 61 |poseWind|owWithPa| |00000c00| 72 61 6d 73 28 6e 75 6c | 6c 2c 20 70 61 72 61 6d |rams(nul|l, param| |00000c10| 73 29 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 20 20 |s);. | }. | |00000c20| 20 20 20 20 7d 20 20 20 | 20 20 20 20 20 20 20 20 | } | | |00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 20 | | . | |00000c70| 20 20 20 7d 20 20 20 0a | 20 20 7d 0a 3c 2f 73 63 | } .| }.</sc| |00000c80| 72 69 70 74 3e 0a 0a 3c | 21 2d 2d 20 4f 76 65 72 |ript>..<|!-- Over| |00000c90| 6c 61 79 20 69 6e 74 6f | 20 74 68 65 20 66 6f 6c |lay into| the fol| |00000ca0| 64 65 72 20 70 61 6e 65 | 20 63 6f 6e 74 65 78 74 |der pane| context| |00000cb0| 20 6d 65 6e 75 2e 20 49 | 66 20 79 6f 75 20 63 68 | menu. I|f you ch| |00000cc0| 61 6e 67 65 20 74 68 65 | 20 69 64 20 66 6f 72 20 |ange the| id for | |00000cd0| 74 68 65 20 6d 65 6e 75 | 20 69 74 65 6d 2c 20 70 |the menu| item, p| |00000ce0| 6c 65 61 73 65 0a 20 20 | 20 20 20 75 70 64 61 74 |lease. | updat| |00000cf0| 65 20 6d 61 69 6c 43 6f | 6e 74 65 78 74 4d 65 6e |e mailCo|ntextMen| |00000d00| 75 73 2e 6a 73 20 0a 2d | 2d 3e 20 0a 3c 70 6f 70 |us.js .-|-> .<pop| |00000d10| 75 70 20 69 64 3d 22 66 | 6f 6c 64 65 72 50 61 6e |up id="f|olderPan| |00000d20| 65 43 6f 6e 74 65 78 74 | 22 3e 0a 20 20 3c 6d 65 |eContext|">. <me| |00000d30| 6e 75 69 74 65 6d 20 69 | 64 3d 22 66 6f 6c 64 65 |nuitem i|d="folde| |00000d40| 72 50 61 6e 65 43 6f 6e | 74 65 78 74 2d 72 73 73 |rPaneCon|text-rss| |00000d50| 53 75 62 73 63 72 69 62 | 65 22 0a 20 20 20 20 69 |Subscrib|e". i| |00000d60| 6e 73 65 72 74 61 66 74 | 65 72 3d 22 66 6f 6c 64 |nsertaft|er="fold| |00000d70| 65 72 50 61 6e 65 43 6f | 6e 74 65 78 74 2d 73 75 |erPaneCo|ntext-su| |00000d80| 62 73 63 72 69 62 65 22 | 0a 20 20 20 20 6c 61 62 |bscribe"|. lab| |00000d90| 65 6c 3d 22 26 66 6f 6c | 64 65 72 43 6f 6e 74 65 |el="&fol|derConte| |00000da0| 78 74 52 53 53 53 75 62 | 73 63 72 69 62 65 2e 6c |xtRSSSub|scribe.l| |00000db0| 61 62 65 6c 3b 22 0a 20 | 20 20 20 61 63 63 65 73 |abel;". | acces| |00000dc0| 73 6b 65 79 3d 22 26 66 | 6f 6c 64 65 72 43 6f 6e |skey="&f|olderCon| |00000dd0| 74 65 78 74 52 53 53 53 | 75 62 73 63 72 69 62 65 |textRSSS|ubscribe| |00000de0| 2e 61 63 63 65 73 73 6b | 65 79 3b 22 0a 20 20 20 |.accessk|ey;". | |00000df0| 20 6f 6e 63 6f 6d 6d 61 | 6e 64 3d 22 6f 70 65 6e | oncomma|nd="open| |00000e00| 53 75 62 73 63 72 69 70 | 74 69 6f 6e 73 44 69 61 |Subscrip|tionsDia| |00000e10| 6c 6f 67 46 72 6f 6d 46 | 6f 6c 64 65 72 50 61 6e |logFromF|olderPan| |00000e20| 65 28 29 3b 22 2f 3e 0a | 3c 2f 70 6f 70 75 70 3e |e();"/>.|</popup>| |00000e30| 0a 0a 3c 2f 6f 76 65 72 | 6c 61 79 3e 0a 0a 50 4b |..</over|lay>..PK| |00000e40| 03 04 0a 00 00 00 00 00 | 0d 88 d0 30 cf 74 34 23 |........|...0.t4#| |00000e50| d2 16 00 00 d2 16 00 00 | 27 00 00 00 63 6f 6e 74 |........|'...cont| |00000e60| 65 6e 74 2f 6d 65 73 73 | 65 6e 67 65 72 2d 6e 65 |ent/mess|enger-ne| |00000e70| 77 73 62 6c 6f 67 2f 65 | 64 69 74 74 72 65 65 2e |wsblog/e|dittree.| |00000e80| 78 6d 6c 3c 3f 78 6d 6c | 20 76 65 72 73 69 6f 6e |xml<?xml| version| |00000e90| 3d 22 31 2e 30 22 3f 3e | 0a 0a 3c 62 69 6e 64 69 |="1.0"?>|..<bindi| |00000ea0| 6e 67 73 20 69 64 3d 22 | 74 72 65 65 45 64 69 74 |ngs id="|treeEdit| |00000eb0| 42 69 6e 64 69 6e 67 73 | 22 0a 20 20 20 78 6d 6c |Bindings|". xml| |00000ec0| 6e 73 3d 22 68 74 74 70 | 3a 2f 2f 77 77 77 2e 6d |ns="http|://www.m| |00000ed0| 6f 7a 69 6c 6c 61 2e 6f | 72 67 2f 78 62 6c 22 0a |ozilla.o|rg/xbl".| |00000ee0| 20 20 20 78 6d 6c 6e 73 | 3a 78 75 6c 3d 22 68 74 | xmlns|:xul="ht| |00000ef0| 74 70 3a 2f 2f 77 77 77 | 2e 6d 6f 7a 69 6c 6c 61 |tp://www|.mozilla| |00000f00| 2e 6f 72 67 2f 6b 65 79 | 6d 61 73 74 65 72 2f 67 |.org/key|master/g| |00000f10| 61 74 65 6b 65 65 70 65 | 72 2f 74 68 65 72 65 2e |atekeepe|r/there.| |00000f20| 69 73 2e 6f 6e 6c 79 2e | 78 75 6c 22 3e 0a 0a 20 |is.only.|xul">.. | |00000f30| 20 3c 62 69 6e 64 69 6e | 67 20 69 64 3d 22 65 64 | <bindin|g id="ed| |00000f40| 69 74 74 72 65 65 22 20 | 65 78 74 65 6e 64 73 3d |ittree" |extends=| |00000f50| 22 63 68 72 6f 6d 65 3a | 2f 2f 67 6c 6f 62 61 6c |"chrome:|//global| |00000f60| 2f 63 6f 6e 74 65 6e 74 | 2f 62 69 6e 64 69 6e 67 |/content|/binding| |00000f70| 73 2f 74 72 65 65 2e 78 | 6d 6c 23 74 72 65 65 22 |s/tree.x|ml#tree"| |00000f80| 3e 0a 20 20 20 20 3c 63 | 6f 6e 74 65 6e 74 3e 0a |>. <c|ontent>.| |00000f90| 20 20 20 20 20 20 3c 63 | 68 69 6c 64 72 65 6e 20 | <c|hildren | |00000fa0| 69 6e 63 6c 75 64 65 73 | 3d 22 74 72 65 65 63 6f |includes|="treeco| |00000fb0| 6c 73 22 2f 3e 0a 20 20 | 20 20 20 20 3c 78 75 6c |ls"/>. | <xul| |00000fc0| 3a 73 74 61 63 6b 20 66 | 6c 65 78 3d 22 31 22 3e |:stack f|lex="1">| |00000fd0| 0a 20 20 20 20 20 20 20 | 20 3c 78 75 6c 3a 74 72 |. | <xul:tr| |00000fe0| 65 65 72 6f 77 73 20 63 | 6c 61 73 73 3d 22 74 72 |eerows c|lass="tr| |00000ff0| 65 65 2d 72 6f 77 73 22 | 20 66 6c 65 78 3d 22 31 |ee-rows"| flex="1| |00001000| 22 3e 0a 20 20 20 20 20 | 20 20 20 20 20 3c 63 68 |">. | <ch| |00001010| 69 6c 64 72 65 6e 2f 3e | 0a 20 20 20 20 20 20 20 |ildren/>|. | |00001020| 20 3c 2f 78 75 6c 3a 74 | 72 65 65 72 6f 77 73 3e | </xul:t|reerows>| |00001030| 0a 20 20 20 20 20 20 20 | 20 3c 78 75 6c 3a 74 65 |. | <xul:te| |00001040| 78 74 62 6f 78 20 69 6c | 65 61 74 74 72 3d 22 74 |xtbox il|eattr="t| |00001050| 65 78 74 22 20 6c 65 66 | 74 3d 22 30 22 20 74 6f |ext" lef|t="0" to| |00001060| 70 3d 22 30 22 20 68 69 | 64 64 65 6e 3d 22 74 72 |p="0" hi|dden="tr| |00001070| 75 65 22 2f 3e 0a 20 20 | 20 20 20 20 3c 2f 78 75 |ue"/>. | </xu| |00001080| 6c 3a 73 74 61 63 6b 3e | 0a 20 20 20 20 3c 2f 63 |l:stack>|. </c| |00001090| 6f 6e 74 65 6e 74 3e 0a | 20 20 20 20 3c 69 6d 70 |ontent>.| <imp| |000010a0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 3e 0a 20 20 20 |lementat|ion>. | |000010b0| 20 20 20 3c 66 69 65 6c | 64 20 6e 61 6d 65 3d 22 | <fiel|d name="| |000010c0| 5f 65 64 69 74 4f 72 69 | 67 69 6e 61 6c 56 61 6c |_editOri|ginalVal| |000010d0| 75 65 22 3e 30 3c 2f 66 | 69 65 6c 64 3e 0a 20 20 |ue">0</f|ield>. | |000010e0| 20 20 20 20 3c 66 69 65 | 6c 64 20 6e 61 6d 65 3d | <fie|ld name=| |000010f0| 22 5f 65 64 69 74 52 6f | 77 22 3e 2d 31 3c 2f 66 |"_editRo|w">-1</f| |00001100| 69 65 6c 64 3e 0a 20 20 | 20 20 20 20 3c 66 69 65 |ield>. | <fie| |00001110| 6c 64 20 6e 61 6d 65 3d | 22 5f 65 64 69 74 43 6f |ld name=|"_editCo| |00001120| 6c 22 3e 6e 75 6c 6c 3c | 2f 66 69 65 6c 64 3e 0a |l">null<|/field>.| |00001130| 20 20 20 20 20 20 3c 66 | 69 65 6c 64 20 6e 61 6d | <f|ield nam| |00001140| 65 3d 22 6f 6e 41 63 63 | 65 70 74 22 3e 6e 75 6c |e="onAcc|ept">nul| |00001150| 6c 3c 2f 66 69 65 6c 64 | 3e 0a 20 20 20 20 20 20 |l</field|>. | |00001160| 3c 6d 65 74 68 6f 64 20 | 6e 61 6d 65 3d 22 73 65 |<method |name="se| |00001170| 74 45 64 69 74 4d 6f 64 | 65 22 3e 0a 20 20 20 20 |tEditMod|e">. | |00001180| 20 20 20 20 3c 70 61 72 | 61 6d 65 74 65 72 20 6e | <par|ameter n| |00001190| 61 6d 65 3d 22 78 22 2f | 3e 0a 20 20 20 20 20 20 |ame="x"/|>. | |000011a0| 20 20 3c 70 61 72 61 6d | 65 74 65 72 20 6e 61 6d | <param|eter nam| |000011b0| 65 3d 22 79 22 2f 3e 0a | 20 20 20 20 20 20 20 20 |e="y"/>.| | |000011c0| 3c 70 61 72 61 6d 65 74 | 65 72 20 6e 61 6d 65 3d |<paramet|er name=| |000011d0| 22 76 61 6c 22 2f 3e 0a | 20 20 20 20 20 20 20 20 |"val"/>.| | |000011e0| 3c 62 6f 64 79 3e 0a 20 | 20 20 20 20 20 20 20 3c |<body>. | <| |000011f0| 21 5b 43 44 41 54 41 5b | 0a 20 20 20 20 20 20 20 |![CDATA[|. | |00001200| 20 20 20 76 61 72 20 74 | 78 74 20 3d 20 64 6f 63 | var t|xt = doc| |00001210| 75 6d 65 6e 74 2e 67 65 | 74 41 6e 6f 6e 79 6d 6f |ument.ge|tAnonymo| |00001220| 75 73 45 6c 65 6d 65 6e | 74 42 79 41 74 74 72 69 |usElemen|tByAttri| |00001230| 62 75 74 65 28 74 68 69 | 73 2c 20 22 69 6c 65 61 |bute(thi|s, "ilea| |00001240| 74 74 72 22 2c 20 22 74 | 65 78 74 22 29 3b 0a 20 |ttr", "t|ext");. | |00001250| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 76 61 6c | | if (val| |00001260| 29 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |){. | i| |00001270| 66 20 28 78 20 3c 20 30 | 29 20 72 65 74 75 72 6e |f (x < 0|) return| |00001280| 3b 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 76 |;.. | v| |00001290| 61 72 20 6f 72 69 67 69 | 6e 61 6c 56 61 6c 75 65 |ar origi|nalValue| |000012a0| 20 3d 20 74 68 69 73 2e | 76 69 65 77 2e 67 65 74 | = this.|view.get| |000012b0| 43 65 6c 6c 54 65 78 74 | 28 78 2c 79 29 3b 0a 20 |CellText|(x,y);. | |000012c0| 20 20 20 20 20 20 20 20 | 20 20 20 76 61 72 20 63 | | var c| |000012d0| 65 6c 6c 6e 6f 64 65 20 | 3d 20 74 68 69 73 2e 67 |ellnode |= this.g| |000012e0| 65 74 43 65 6c 6c 4e 6f | 64 65 41 74 28 78 2c 79 |etCellNo|deAt(x,y| |000012f0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |);. | i| |00001300| 66 20 28 21 28 63 65 6c | 6c 6e 6f 64 65 20 7c 7c |f (!(cel|lnode ||| |00001310| 20 74 68 69 73 2e 76 69 | 65 77 2e 69 73 45 64 69 | this.vi|ew.isEdi| |00001320| 74 61 62 6c 65 28 78 2c | 79 29 29 29 20 72 65 74 |table(x,|y))) ret| |00001330| 75 72 6e 3b 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |urn;.. | | |00001340| 20 20 69 66 20 28 74 68 | 69 73 2e 5f 65 64 69 74 | if (th|is._edit| |00001350| 52 6f 77 20 3e 3d 20 30 | 29 20 74 68 69 73 2e 5f |Row >= 0|) this._| |00001360| 61 73 73 69 67 6e 56 61 | 6c 75 65 54 6f 43 65 6c |assignVa|lueToCel| |00001370| 6c 28 74 78 74 2e 76 61 | 6c 75 65 2c 74 72 75 65 |l(txt.va|lue,true| |00001380| 29 3b 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | | |00001390| 69 66 20 28 63 65 6c 6c | 6e 6f 64 65 20 26 26 20 |if (cell|node && | |000013a0| 63 65 6c 6c 6e 6f 64 65 | 2e 67 65 74 41 74 74 72 |cellnode|.getAttr| |000013b0| 69 62 75 74 65 28 22 72 | 65 61 64 6f 6e 6c 79 22 |ibute("r|eadonly"| |000013c0| 29 29 20 72 65 74 75 72 | 6e 3b 0a 20 20 20 20 20 |)) retur|n;. | |000013d0| 20 20 20 20 20 20 20 74 | 78 74 2e 72 65 6d 6f 76 | t|xt.remov| |000013e0| 65 41 74 74 72 69 62 75 | 74 65 28 22 68 69 64 64 |eAttribu|te("hidd| |000013f0| 65 6e 22 29 3b 0a 0a 20 | 20 20 20 20 20 20 20 20 |en");.. | | |00001400| 20 20 20 76 61 72 20 74 | 72 65 65 42 6f 78 20 3d | var t|reeBox =| |00001410| 20 74 68 69 73 2e 74 72 | 65 65 42 6f 78 4f 62 6a | this.tr|eeBoxObj| |00001420| 65 63 74 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ect;. | | |00001430| 20 76 61 72 20 6f 75 74 | 78 20 3d 20 7b 7d 2c 20 | var out|x = {}, | |00001440| 6f 75 74 79 20 3d 20 7b | 7d 2c 20 6f 75 74 77 69 |outy = {|}, outwi| |00001450| 64 74 68 20 3d 20 7b 7d | 2c 20 6f 75 74 68 65 69 |dth = {}|, outhei| |00001460| 67 68 74 20 3d 20 7b 7d | 3b 0a 20 20 20 20 20 20 |ght = {}|;. | |00001470| 20 20 20 20 20 20 76 61 | 72 20 63 6f 6f 72 64 73 | va|r coords| |00001480| 20 3d 20 74 72 65 65 42 | 6f 78 2e 67 65 74 43 6f | = treeB|ox.getCo| |00001490| 6f 72 64 73 46 6f 72 43 | 65 6c 6c 49 74 65 6d 28 |ordsForC|ellItem(| |000014a0| 78 2c 79 2c 22 63 65 6c | 6c 22 2c 6f 75 74 78 2c |x,y,"cel|l",outx,| |000014b0| 6f 75 74 79 2c 6f 75 74 | 77 69 64 74 68 2c 6f 75 |outy,out|width,ou| |000014c0| 74 68 65 69 67 68 74 29 | 3b 0a 0a 20 20 20 20 20 |theight)|;.. | |000014d0| 20 20 20 20 20 20 20 74 | 68 69 73 2e 5f 65 64 69 | t|his._edi| |000014e0| 74 52 6f 77 20 3d 20 78 | 3b 0a 20 20 20 20 20 20 |tRow = x|;. | |000014f0| 20 20 20 20 20 20 74 68 | 69 73 2e 5f 65 64 69 74 | th|is._edit| |00001500| 43 6f 6c 20 3d 20 79 3b | 0a 0a 20 20 20 20 20 20 |Col = y;|.. | |00001510| 20 20 20 20 20 20 74 78 | 74 2e 73 65 74 41 74 74 | tx|t.setAtt| |00001520| 72 69 62 75 74 65 28 22 | 6c 65 66 74 22 2c 6f 75 |ribute("|left",ou| |00001530| 74 78 2e 76 61 6c 75 65 | 2d 33 29 3b 0a 20 20 20 |tx.value|-3);. | |00001540| 20 20 20 20 20 20 20 20 | 20 74 78 74 2e 73 65 74 | | txt.set| |00001550| 41 74 74 72 69 62 75 74 | 65 28 22 74 6f 70 22 2c |Attribut|e("top",| |00001560| 6f 75 74 79 2e 76 61 6c | 75 65 2d 33 29 3b 0a 20 |outy.val|ue-3);. | |00001570| 20 20 20 20 20 20 20 20 | 20 20 20 74 78 74 2e 73 | | txt.s| |00001580| 65 74 41 74 74 72 69 62 | 75 74 65 28 22 68 65 69 |etAttrib|ute("hei| |00001590| 67 68 74 22 2c 6f 75 74 | 68 65 69 67 68 74 2e 76 |ght",out|height.v| |000015a0| 61 6c 75 65 29 3b 0a 0a | 20 20 20 20 20 20 20 20 |alue);..| | |000015b0| 20 20 20 20 74 78 74 2e | 73 65 74 41 74 74 72 69 | txt.|setAttri| |000015c0| 62 75 74 65 28 22 77 69 | 64 74 68 22 2c 6f 75 74 |bute("wi|dth",out| |000015d0| 77 69 64 74 68 2e 76 61 | 6c 75 65 20 2d 20 6f 75 |width.va|lue - ou| |000015e0| 74 79 2e 76 61 6c 75 65 | 29 3b 0a 0a 20 20 20 20 |ty.value|);.. | |000015f0| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 5f 65 64 | |this._ed| |00001600| 69 74 4f 72 69 67 69 6e | 61 6c 56 61 6c 75 65 20 |itOrigin|alValue | |00001610| 3d 20 6f 72 69 67 69 6e | 61 6c 56 61 6c 75 65 3b |= origin|alValue;| |00001620| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if | |00001630| 28 63 65 6c 6c 6e 6f 64 | 65 29 20 63 65 6c 6c 6e |(cellnod|e) celln| |00001640| 6f 64 65 2e 73 65 74 41 | 74 74 72 69 62 75 74 65 |ode.setA|ttribute| |00001650| 28 22 6c 61 62 65 6c 22 | 2c 22 22 29 3b 0a 20 20 |("label"|,"");. | |00001660| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 76 | | this.v| |00001670| 69 65 77 2e 73 65 74 43 | 65 6c 6c 54 65 78 74 28 |iew.setC|ellText(| |00001680| 78 2c 79 2c 22 22 29 3b | 0a 0a 20 20 20 20 20 20 |x,y,"");|.. | |00001690| 20 20 20 20 20 20 74 78 | 74 2e 76 61 6c 75 65 20 | tx|t.value | |000016a0| 3d 20 6f 72 69 67 69 6e | 61 6c 56 61 6c 75 65 3b |= origin|alValue;| |000016b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 74 78 74 |. | txt| |000016c0| 2e 73 65 6c 65 63 74 28 | 29 3b 0a 20 20 20 20 20 |.select(|);. | |000016d0| 20 20 20 20 20 20 20 74 | 68 69 73 2e 73 65 74 41 | t|his.setA| |000016e0| 74 74 72 69 62 75 74 65 | 28 22 65 64 69 74 69 6e |ttribute|("editin| |000016f0| 67 22 2c 22 74 72 75 65 | 22 29 3b 0a 0a 20 20 20 |g","true|");.. | |00001700| 20 20 20 20 20 20 20 20 | 20 74 78 74 2e 61 64 64 | | txt.add| |00001710| 45 76 65 6e 74 4c 69 73 | 74 65 6e 65 72 28 22 6b |EventLis|tener("k| |00001720| 65 79 70 72 65 73 73 22 | 2c 20 74 68 69 73 2e 66 |eypress"|, this.f| |00001730| 69 65 6c 64 4b 65 79 44 | 6f 77 6e 2c 20 66 61 6c |ieldKeyD|own, fal| |00001740| 73 65 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |se);. | | |00001750| 20 74 78 74 2e 61 64 64 | 45 76 65 6e 74 4c 69 73 | txt.add|EventLis| |00001760| 74 65 6e 65 72 28 22 62 | 6c 75 72 22 2c 20 74 68 |tener("b|lur", th| |00001770| 69 73 2e 66 69 65 6c 64 | 43 68 61 6e 67 65 2c 20 |is.field|Change, | |00001780| 74 72 75 65 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |true);. | | |00001790| 20 7d 0a 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | }. | els| |000017a0| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e {. | | |000017b0| 74 68 69 73 2e 72 65 6d | 6f 76 65 41 74 74 72 69 |this.rem|oveAttri| |000017c0| 62 75 74 65 28 22 65 64 | 69 74 69 6e 67 22 29 3b |bute("ed|iting");| |000017d0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 74 78 |.. | tx| |000017e0| 74 2e 73 65 74 41 74 74 | 72 69 62 75 74 65 28 22 |t.setAtt|ribute("| |000017f0| 68 69 64 64 65 6e 22 2c | 22 74 72 75 65 22 29 3b |hidden",|"true");| |00001800| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 74 78 74 |. | txt| |00001810| 2e 72 65 6d 6f 76 65 45 | 76 65 6e 74 4c 69 73 74 |.removeE|ventList| |00001820| 65 6e 65 72 28 22 6b 65 | 79 70 72 65 73 73 22 2c |ener("ke|ypress",| |00001830| 20 74 68 69 73 2e 66 69 | 65 6c 64 4b 65 79 44 6f | this.fi|eldKeyDo| |00001840| 77 6e 2c 20 66 61 6c 73 | 65 29 3b 0a 20 20 20 20 |wn, fals|e);. | |00001850| 20 20 20 20 20 20 20 20 | 74 78 74 2e 72 65 6d 6f | |txt.remo| |00001860| 76 65 45 76 65 6e 74 4c | 69 73 74 65 6e 65 72 28 |veEventL|istener(| |00001870| 22 62 6c 75 72 22 2c 20 | 74 68 69 73 2e 66 69 65 |"blur", |this.fie| |00001880| 6c 64 43 68 61 6e 67 65 | 2c 20 74 72 75 65 29 3b |ldChange|, true);| |00001890| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 74 78 74 |. | txt| |000018a0| 2e 62 6c 75 72 28 29 3b | 0a 20 20 20 20 20 20 20 |.blur();|. | |000018b0| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 5d 5d 3e | }. | ]]>| |000018c0| 0a 20 20 20 20 20 20 20 | 20 3c 2f 62 6f 64 79 3e |. | </body>| |000018d0| 0a 20 20 20 20 20 20 3c | 2f 6d 65 74 68 6f 64 3e |. <|/method>| |000018e0| 0a 20 20 20 20 20 20 3c | 6d 65 74 68 6f 64 20 6e |. <|method n| |000018f0| 61 6d 65 3d 22 67 65 74 | 43 65 6c 6c 4e 6f 64 65 |ame="get|CellNode| |00001900| 41 74 22 3e 0a 20 20 20 | 20 20 20 20 20 3c 70 61 |At">. | <pa| |00001910| 72 61 6d 65 74 65 72 20 | 6e 61 6d 65 3d 22 72 6f |rameter |name="ro| |00001920| 77 22 2f 3e 0a 20 20 20 | 20 20 20 20 20 3c 70 61 |w"/>. | <pa| |00001930| 72 61 6d 65 74 65 72 20 | 6e 61 6d 65 3d 22 63 6f |rameter |name="co| |00001940| 6c 22 2f 3e 0a 20 20 20 | 20 20 20 20 20 3c 62 6f |l"/>. | <bo| |00001950| 64 79 3e 0a 20 20 20 20 | 20 20 20 20 20 20 76 61 |dy>. | va| |00001960| 72 20 76 69 65 77 3b 0a | 20 20 20 20 20 20 20 20 |r view;.| | |00001970| 20 20 74 72 79 20 7b 0a | 20 20 20 20 20 20 20 20 | try {.| | |00001980| 20 20 20 20 76 69 65 77 | 20 3d 20 74 68 69 73 2e | view| = this.| |00001990| 63 6f 6e 74 65 6e 74 56 | 69 65 77 3b 0a 20 20 20 |contentV|iew;. | |000019a0| 20 20 20 20 20 20 20 7d | 20 63 61 74 63 68 20 28 | }| catch (| |000019b0| 65 78 29 7b 7d 0a 20 20 | 20 20 20 20 20 20 20 20 |ex){}. | | |000019c0| 69 66 20 28 76 69 65 77 | 29 7b 0a 20 20 20 20 20 |if (view|){. | |000019d0| 20 20 20 20 20 20 20 76 | 61 72 20 65 6c 65 6d 20 | v|ar elem | |000019e0| 3d 20 76 69 65 77 2e 67 | 65 74 49 74 65 6d 41 74 |= view.g|etItemAt| |000019f0| 49 6e 64 65 78 28 72 6f | 77 29 3b 0a 20 20 20 20 |Index(ro|w);. | |00001a00| 20 20 20 20 20 20 20 20 | 69 66 20 28 65 6c 65 6d | |if (elem| |00001a10| 29 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |){. | | |00001a20| 20 76 61 72 20 70 6f 73 | 20 3d 20 28 28 64 6f 63 | var pos| = ((doc| |00001a30| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement| |00001a40| 42 79 49 64 28 63 6f 6c | 29 2e 6f 72 64 69 6e 61 |ById(col|).ordina| |00001a50| 6c 20 2d 20 31 29 20 3e | 3e 20 31 29 3b 0a 20 20 |l - 1) >|> 1);. | |00001a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu| |00001a70| 72 6e 20 65 6c 65 6d 2e | 66 69 72 73 74 43 68 69 |rn elem.|firstChi| |00001a80| 6c 64 2e 63 68 69 6c 64 | 4e 6f 64 65 73 5b 70 6f |ld.child|Nodes[po| |00001a90| 73 5d 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |s];. | | |00001aa0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 |}. | }. | |00001ab0| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 6e | |return n| |00001ac0| 75 6c 6c 3b 0a 20 20 20 | 20 20 20 20 20 3c 2f 62 |ull;. | </b| |00001ad0| 6f 64 79 3e 0a 20 20 20 | 20 20 20 3c 2f 6d 65 74 |ody>. | </met| |00001ae0| 68 6f 64 3e 0a 20 20 20 | 20 20 20 3c 6d 65 74 68 |hod>. | <meth| |00001af0| 6f 64 20 6e 61 6d 65 3d | 22 66 69 65 6c 64 4b 65 |od name=|"fieldKe| |00001b00| 79 44 6f 77 6e 22 3e 0a | 20 20 20 20 20 20 20 20 |yDown">.| | |00001b10| 3c 70 61 72 61 6d 65 74 | 65 72 20 6e 61 6d 65 3d |<paramet|er name=| |00001b20| 22 61 45 76 65 6e 74 22 | 2f 3e 0a 20 20 20 20 20 |"aEvent"|/>. | |00001b30| 20 20 20 3c 62 6f 64 79 | 3e 0a 20 20 20 20 20 20 | <body|>. | |00001b40| 20 20 3c 21 5b 43 44 41 | 54 41 5b 0a 20 20 20 20 | <![CDA|TA[. | |00001b50| 20 20 20 20 20 20 76 61 | 72 20 74 72 65 65 20 3d | va|r tree =| |00001b60| 20 61 45 76 65 6e 74 2e | 74 61 72 67 65 74 3b 0a | aEvent.|target;.| |00001b70| 20 20 20 20 20 20 20 20 | 20 20 77 68 69 6c 65 20 | | while | |00001b80| 28 74 72 65 65 20 26 26 | 20 74 72 65 65 2e 74 61 |(tree &&| tree.ta| |00001b90| 67 4e 61 6d 65 20 21 3d | 20 22 74 72 65 65 22 29 |gName !=| "tree")| |00001ba0| 20 74 72 65 65 20 3d 20 | 74 72 65 65 2e 70 61 72 | tree = |tree.par| |00001bb0| 65 6e 74 4e 6f 64 65 3b | 0a 20 20 20 20 20 20 20 |entNode;|. | |00001bc0| 20 20 20 69 66 20 28 61 | 45 76 65 6e 74 2e 6b 65 | if (a|Event.ke| |00001bd0| 79 43 6f 64 65 20 3d 3d | 20 31 33 29 7b 0a 20 20 |yCode ==| 13){. | |00001be0| 20 20 20 20 20 20 20 20 | 20 20 74 72 65 65 2e 5f | | tree._| |00001bf0| 61 73 73 69 67 6e 56 61 | 6c 75 65 54 6f 43 65 6c |assignVa|lueToCel| |00001c00| 6c 28 74 68 69 73 2e 76 | 61 6c 75 65 2c 74 72 75 |l(this.v|alue,tru| |00001c10| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 7d 0a |e);. | }.| |00001c20| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 61 45 | | if (aE| |00001c30| 76 65 6e 74 2e 6b 65 79 | 43 6f 64 65 20 3d 3d 20 |vent.key|Code == | |00001c40| 32 37 29 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |27){. | | |00001c50| 20 74 72 65 65 2e 5f 61 | 73 73 69 67 6e 56 61 6c | tree._a|ssignVal| |00001c60| 75 65 54 6f 43 65 6c 6c | 28 74 72 65 65 2e 5f 65 |ueToCell|(tree._e| |00001c70| 64 69 74 4f 72 69 67 69 | 6e 61 6c 56 61 6c 75 65 |ditOrigi|nalValue| |00001c80| 2c 66 61 6c 73 65 29 3b | 0a 20 20 20 20 20 20 20 |,false);|. | |00001c90| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 20 20 61 | }. | a| |00001ca0| 45 76 65 6e 74 2e 70 72 | 65 76 65 6e 74 42 75 62 |Event.pr|eventBub| |00001cb0| 62 6c 65 28 29 3b 0a 20 | 20 20 20 20 20 20 20 5d |ble();. | ]| |00001cc0| 5d 3e 0a 20 20 20 20 20 | 20 20 20 3c 2f 62 6f 64 |]>. | </bod| |00001cd0| 79 3e 0a 20 20 20 20 20 | 20 3c 2f 6d 65 74 68 6f |y>. | </metho| |00001ce0| 64 3e 0a 20 20 20 20 20 | 20 3c 6d 65 74 68 6f 64 |d>. | <method| |00001cf0| 20 6e 61 6d 65 3d 22 5f | 61 73 73 69 67 6e 56 61 | name="_|assignVa| |00001d00| 6c 75 65 54 6f 43 65 6c | 6c 22 3e 0a 20 20 20 20 |lueToCel|l">. | |00001d10| 20 20 20 20 3c 70 61 72 | 61 6d 65 74 65 72 20 6e | <par|ameter n| |00001d20| 61 6d 65 3d 22 76 61 6c | 75 65 22 2f 3e 0a 20 20 |ame="val|ue"/>. | |00001d30| 20 20 20 20 20 20 3c 70 | 61 72 61 6d 65 74 65 72 | <p|arameter| |00001d40| 20 6e 61 6d 65 3d 22 61 | 63 63 65 70 74 4d 6f 64 | name="a|cceptMod| |00001d50| 65 22 2f 3e 0a 20 20 20 | 20 20 20 20 20 3c 62 6f |e"/>. | <bo| |00001d60| 64 79 3e 0a 20 20 20 20 | 20 20 20 20 3c 21 5b 43 |dy>. | <![C| |00001d70| 44 41 54 41 5b 0a 20 20 | 20 20 20 20 20 20 20 20 |DATA[. | | |00001d80| 76 61 72 20 72 64 66 20 | 3d 20 43 6f 6d 70 6f 6e |var rdf |= Compon| |00001d90| 65 6e 74 73 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ents. | | |00001da0| 20 20 20 2e 63 6c 61 73 | 73 65 73 5b 22 40 6d 6f | .clas|ses["@mo| |00001db0| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 72 64 66 2f 72 64 |zilla.or|g/rdf/rd| |00001dc0| 66 2d 73 65 72 76 69 63 | 65 3b 31 22 5d 0a 20 20 |f-servic|e;1"]. | |00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2e 67 | | .g| |00001de0| 65 74 53 65 72 76 69 63 | 65 28 43 6f 6d 70 6f 6e |etServic|e(Compon| |00001df0| 65 6e 74 73 2e 69 6e 74 | 65 72 66 61 63 65 73 2e |ents.int|erfaces.| |00001e00| 6e 73 49 52 44 46 53 65 | 72 76 69 63 65 29 3b 0a |nsIRDFSe|rvice);.| |00001e10| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 74 68 | | if (th| |00001e20| 69 73 2e 5f 65 64 69 74 | 52 6f 77 20 3d 3d 20 2d |is._edit|Row == -| |00001e30| 31 29 20 72 65 74 75 72 | 6e 3b 0a 20 20 20 20 20 |1) retur|n;. | |00001e40| 20 20 20 20 20 69 66 20 | 28 61 63 63 65 70 74 4d | if |(acceptM| |00001e50| 6f 64 65 20 26 26 20 74 | 68 69 73 2e 6f 6e 41 63 |ode && t|his.onAc| |00001e60| 63 65 70 74 20 26 26 0a | 20 20 20 20 20 20 20 20 |cept &&.| | |00001e70| 20 20 20 20 20 20 74 68 | 69 73 2e 6f 6e 41 63 63 | th|is.onAcc| |00001e80| 65 70 74 28 74 68 69 73 | 2e 5f 65 64 69 74 52 6f |ept(this|._editRo| |00001e90| 77 2c 74 68 69 73 2e 5f | 65 64 69 74 43 6f 6c 2c |w,this._|editCol,| |00001ea0| 74 68 69 73 2e 5f 65 64 | 69 74 4f 72 69 67 69 6e |this._ed|itOrigin| |00001eb0| 61 6c 56 61 6c 75 65 2c | 76 61 6c 75 65 29 29 0a |alValue,|value)).| |00001ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu| |00001ed0| 72 6e 3b 0a 0a 20 20 20 | 20 20 20 20 20 20 20 76 |rn;.. | v| |00001ee0| 61 72 20 63 65 6c 6c 6e | 6f 64 65 20 3d 20 74 68 |ar celln|ode = th| |00001ef0| 69 73 2e 67 65 74 43 65 | 6c 6c 4e 6f 64 65 41 74 |is.getCe|llNodeAt| |00001f00| 28 74 68 69 73 2e 5f 65 | 64 69 74 52 6f 77 2c 74 |(this._e|ditRow,t| |00001f10| 68 69 73 2e 5f 65 64 69 | 74 43 6f 6c 29 3b 0a 20 |his._edi|tCol);. | |00001f20| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 63 65 6c | | if (cel| |00001f30| 6c 6e 6f 64 65 29 20 7b | 0a 20 20 20 20 20 20 20 |lnode) {|. | |00001f40| 20 20 20 20 20 20 20 63 | 65 6c 6c 6e 6f 64 65 2e | c|ellnode.| |00001f50| 73 65 74 41 74 74 72 69 | 62 75 74 65 28 22 6c 61 |setAttri|bute("la| |00001f60| 62 65 6c 22 2c 20 76 61 | 6c 75 65 29 3b 0a 0a 20 |bel", va|lue);.. | |00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 76 61 72 | | var| |00001f80| 20 69 74 65 6d 20 3d 20 | 63 65 6c 6c 6e 6f 64 65 | item = |cellnode| |00001f90| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | | |00001fa0| 77 68 69 6c 65 20 28 69 | 74 65 6d 20 26 26 20 69 |while (i|tem && i| |00001fb0| 74 65 6d 2e 74 61 67 4e | 61 6d 65 20 21 3d 20 22 |tem.tagN|ame != "| |00001fc0| 74 72 65 65 69 74 65 6d | 22 29 0a 20 20 20 20 20 |treeitem|"). | |00001fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 74 65 | | ite| |00001fe0| 6d 20 3d 20 69 74 65 6d | 2e 70 61 72 65 6e 74 4e |m = item|.parentN| |00001ff0| 6f 64 65 3b 0a 20 20 0a | 20 20 20 20 20 20 20 20 |ode;. .| | |00002000| 20 20 20 20 20 20 69 66 | 20 28 74 68 69 73 2e 5f | if| (this._| |00002010| 65 64 69 74 43 6f 6c 20 | 3d 3d 20 22 73 75 62 73 |editCol |== "subs| |00002020| 2d 6e 61 6d 65 2d 63 6f | 6c 75 6d 6e 22 29 20 7b |-name-co|lumn") {| |00002030| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00002040| 20 20 20 75 70 64 61 74 | 65 54 69 74 6c 65 28 69 | updat|eTitle(i| |00002050| 74 65 6d 2e 69 64 2c 20 | 76 61 6c 75 65 29 3b 0a |tem.id, |value);.| |00002060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.| |00002070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el| |00002080| 73 65 20 69 66 20 28 74 | 68 69 73 2e 5f 65 64 69 |se if (t|his._edi| |00002090| 74 43 6f 6c 20 3d 3d 20 | 22 73 75 62 73 2d 75 72 |tCol == |"subs-ur| |000020a0| 6c 2d 63 6f 6c 75 6d 6e | 22 29 20 7b 0a 20 20 20 |l-column|") {. | |000020b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 75 | | u| |000020c0| 70 64 61 74 65 55 52 4c | 28 69 74 65 6d 2e 69 64 |pdateURL|(item.id| |000020d0| 2c 20 76 61 6c 75 65 29 | 3b 0a 20 20 20 20 20 20 |, value)|;. | |000020e0| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. | |000020f0| 20 20 20 20 7d 0a 0a 20 | 20 20 20 20 20 20 20 20 | }.. | | |00002100| 20 74 68 69 73 2e 76 69 | 65 77 2e 73 65 74 43 65 | this.vi|ew.setCe| |00002110| 6c 6c 54 65 78 74 28 74 | 68 69 73 2e 5f 65 64 69 |llText(t|his._edi| |00002120| 74 52 6f 77 2c 74 68 69 | 73 2e 5f 65 64 69 74 43 |tRow,thi|s._editC| |00002130| 6f 6c 2c 76 61 6c 75 65 | 29 3b 0a 20 20 20 20 20 |ol,value|);. | |00002140| 20 20 20 20 20 74 68 69 | 73 2e 74 72 65 65 42 6f | thi|s.treeBo| |00002150| 78 4f 62 6a 65 63 74 2e | 69 6e 76 61 6c 69 64 61 |xObject.|invalida| |00002160| 74 65 43 65 6c 6c 28 74 | 68 69 73 2e 5f 65 64 69 |teCell(t|his._edi| |00002170| 74 52 6f 77 2c 74 68 69 | 73 2e 5f 65 64 69 74 43 |tRow,thi|s._editC| |00002180| 6f 6c 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 74 |ol);. | t| |00002190| 68 69 73 2e 5f 65 64 69 | 74 52 6f 77 20 3d 20 2d |his._edi|tRow = -| |000021a0| 31 3b 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 69 |1;. | thi| |000021b0| 73 2e 5f 65 64 69 74 43 | 6f 6c 20 3d 20 6e 75 6c |s._editC|ol = nul| |000021c0| 6c 3b 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 69 |l;. | thi| |000021d0| 73 2e 62 75 69 6c 64 65 | 72 2e 72 65 62 75 69 6c |s.builde|r.rebuil| |000021e0| 64 28 29 3b 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |d();.. | | |000021f0| 74 68 69 73 2e 73 65 74 | 45 64 69 74 4d 6f 64 65 |this.set|EditMode| |00002200| 28 22 6e 6f 72 6d 61 6c | 22 29 3b 0a 20 20 20 20 |("normal|");. | |00002210| 20 20 20 20 5d 5d 3e 0a | 20 20 20 20 20 20 20 20 | ]]>.| | |00002220| 3c 2f 62 6f 64 79 3e 0a | 20 20 20 20 20 20 3c 2f |</body>.| </| |00002230| 6d 65 74 68 6f 64 3e 0a | 20 20 20 20 20 20 3c 6d |method>.| <m| |00002240| 65 74 68 6f 64 20 6e 61 | 6d 65 3d 22 66 69 65 6c |ethod na|me="fiel| |00002250| 64 43 68 61 6e 67 65 22 | 3e 0a 20 20 20 20 20 20 |dChange"|>. | |00002260| 20 20 3c 70 61 72 61 6d | 65 74 65 72 20 6e 61 6d | <param|eter nam| |00002270| 65 3d 22 61 45 76 65 6e | 74 22 2f 3e 0a 20 20 20 |e="aEven|t"/>. | |00002280| 20 20 20 20 20 3c 62 6f | 64 79 3e 0a 20 20 20 20 | <bo|dy>. | |00002290| 20 20 20 20 3c 21 5b 43 | 44 41 54 41 5b 0a 20 20 | <![C|DATA[. | |000022a0| 20 20 20 20 20 20 20 20 | 76 61 72 20 74 72 65 65 | |var tree| |000022b0| 20 3d 20 61 45 76 65 6e | 74 2e 74 61 72 67 65 74 | = aEven|t.target| |000022c0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 77 68 69 6c |;. | whil| |000022d0| 65 20 28 74 72 65 65 20 | 26 26 20 74 72 65 65 2e |e (tree |&& tree.| |000022e0| 74 61 67 4e 61 6d 65 20 | 21 3d 20 22 74 72 65 65 |tagName |!= "tree| |000022f0| 22 29 20 74 72 65 65 20 | 3d 20 74 72 65 65 2e 70 |") tree |= tree.p| |00002300| 61 72 65 6e 74 4e 6f 64 | 65 3b 0a 20 20 20 20 20 |arentNod|e;. | |00002310| 20 20 20 20 20 74 72 65 | 65 2e 5f 61 73 73 69 67 | tre|e._assig| |00002320| 6e 56 61 6c 75 65 54 6f | 43 65 6c 6c 28 74 68 69 |nValueTo|Cell(thi| |00002330| 73 2e 76 61 6c 75 65 2c | 74 72 75 65 29 3b 0a 20 |s.value,|true);. | |00002340| 20 20 20 20 20 20 20 5d | 5d 3e 0a 20 20 20 20 20 | ]|]>. | |00002350| 20 20 20 3c 2f 62 6f 64 | 79 3e 0a 20 20 20 20 20 | </bod|y>. | |00002360| 20 3c 2f 6d 65 74 68 6f | 64 3e 0a 20 20 20 20 3c | </metho|d>. <| |00002370| 2f 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 3e |/impleme|ntation>| |00002380| 0a 20 20 20 20 3c 68 61 | 6e 64 6c 65 72 73 3e 0a |. <ha|ndlers>.| |00002390| 20 20 20 20 20 20 3c 68 | 61 6e 64 6c 65 72 20 65 | <h|andler e| |000023a0| 76 65 6e 74 3d 22 63 6c | 69 63 6b 22 20 63 6c 69 |vent="cl|ick" cli| |000023b0| 63 6b 63 6f 75 6e 74 3d | 22 32 22 20 70 68 61 73 |ckcount=|"2" phas| |000023c0| 65 3d 22 63 61 70 74 75 | 72 69 6e 67 22 3e 0a 20 |e="captu|ring">. | |000023d0| 20 20 20 20 20 3c 21 5b | 43 44 41 54 41 5b 0a 20 | <![|CDATA[. | |000023e0| 20 20 20 20 20 20 20 76 | 61 72 20 74 72 65 65 42 | v|ar treeB| |000023f0| 6f 78 20 3d 20 74 68 69 | 73 2e 74 72 65 65 42 6f |ox = thi|s.treeBo| |00002400| 78 4f 62 6a 65 63 74 3b | 0a 20 20 20 20 20 20 20 |xObject;|. | |00002410| 20 76 61 72 20 72 6f 77 | 20 3d 20 7b 7d 3b 0a 20 | var row| = {};. | |00002420| 20 20 20 20 20 20 20 76 | 61 72 20 63 6f 6c 20 3d | v|ar col =| |00002430| 20 7b 7d 3b 0a 20 20 20 | 20 20 20 20 20 76 61 72 | {};. | var| |00002440| 20 6f 62 6a 20 3d 20 7b | 7d 3b 0a 20 20 20 20 20 | obj = {|};. | |00002450| 20 20 20 69 66 28 72 6f | 77 2e 76 61 6c 75 65 20 | if(ro|w.value | |00002460| 21 3d 20 2d 31 29 20 7b | 0a 20 20 20 20 20 20 20 |!= -1) {|. | |00002470| 20 20 20 65 76 65 6e 74 | 2e 70 72 65 76 65 6e 74 | event|.prevent| |00002480| 42 75 62 62 6c 65 28 29 | 3b 0a 20 20 20 20 20 20 |Bubble()|;. | |00002490| 20 20 20 20 74 72 65 65 | 42 6f 78 2e 67 65 74 43 | tree|Box.getC| |000024a0| 65 6c 6c 41 74 28 65 76 | 65 6e 74 2e 63 6c 69 65 |ellAt(ev|ent.clie| |000024b0| 6e 74 58 2c 65 76 65 6e | 74 2e 63 6c 69 65 6e 74 |ntX,even|t.client| |000024c0| 59 2c 72 6f 77 2c 63 6f | 6c 2c 6f 62 6a 29 3b 0a |Y,row,co|l,obj);.| |000024d0| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 73 | | this.s| |000024e0| 65 74 45 64 69 74 4d 6f | 64 65 28 72 6f 77 2e 76 |etEditMo|de(row.v| |000024f0| 61 6c 75 65 2c 63 6f 6c | 2e 76 61 6c 75 65 2c 74 |alue,col|.value,t| |00002500| 72 75 65 29 3b 0a 20 20 | 20 20 20 20 20 20 7d 0a |rue);. | }.| |00002510| 20 20 20 20 20 20 5d 5d | 3e 0a 20 20 20 20 20 20 | ]]|>. | |00002520| 3c 2f 68 61 6e 64 6c 65 | 72 3e 0a 20 20 20 20 3c |</handle|r>. <| |00002530| 2f 68 61 6e 64 6c 65 72 | 73 3e 0a 20 20 3c 2f 62 |/handler|s>. </b| |00002540| 69 6e 64 69 6e 67 3e 0a | 0a 3c 2f 62 69 6e 64 69 |inding>.|.</bindi| |00002550| 6e 67 73 3e 0a 50 4b 03 | 04 0a 00 00 00 00 00 0d |ngs>.PK.|........| |00002560| 88 d0 30 0f 36 48 47 95 | 04 00 00 95 04 00 00 29 |..0.6HG.|.......)| |00002570| 00 00 00 63 6f 6e 74 65 | 6e 74 2f 6d 65 73 73 65 |...conte|nt/messe| |00002580| 6e 67 65 72 2d 6e 65 77 | 73 62 6c 6f 67 2f 64 65 |nger-new|sblog/de| |00002590| 62 75 67 2d 75 74 69 6c | 73 2e 6a 73 66 75 6e 63 |bug-util|s.jsfunc| |000025a0| 74 69 6f 6e 20 65 6e 75 | 6d 65 72 61 74 65 49 6e |tion enu|merateIn| |000025b0| 74 65 72 66 61 63 65 73 | 28 6f 62 6a 29 0a 7b 0a |terfaces|(obj).{.| |000025c0| 20 20 76 61 72 20 69 6e | 74 65 72 66 61 63 65 73 | var in|terfaces| |000025d0| 20 3d 20 6e 65 77 20 41 | 72 72 61 79 28 29 3b 0a | = new A|rray();.| |000025e0| 20 20 66 6f 72 20 28 69 | 20 69 6e 20 43 6f 6d 70 | for (i| in Comp| |000025f0| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface| |00002600| 73 29 0a 20 20 7b 0a 20 | 20 20 20 74 72 79 0a 20 |s). {. | try. | |00002610| 20 20 20 7b 0a 20 20 20 | 20 20 20 6f 62 6a 2e 51 | {. | obj.Q| |00002620| 75 65 72 79 49 6e 74 65 | 72 66 61 63 65 28 43 6f |ueryInte|rface(Co| |00002630| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa| |00002640| 63 65 73 5b 69 5d 29 3b | 0a 20 20 20 20 20 20 69 |ces[i]);|. i| |00002650| 6e 74 65 72 66 61 63 65 | 73 2e 70 75 73 68 28 69 |nterface|s.push(i| |00002660| 29 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 63 61 74 |);. }|. cat| |00002670| 63 68 28 65 29 20 7b 7d | 0a 20 20 7d 0a 20 20 72 |ch(e) {}|. }. r| |00002680| 65 74 75 72 6e 20 69 6e | 74 65 72 66 61 63 65 73 |eturn in|terfaces| |00002690| 3b 0a 7d 0a 0a 66 75 6e | 63 74 69 6f 6e 20 65 6e |;.}..fun|ction en| |000026a0| 75 6d 65 72 61 74 65 50 | 72 6f 70 65 72 74 69 65 |umerateP|ropertie| |000026b0| 73 28 6f 62 6a 2c 20 65 | 78 63 6c 75 64 65 43 6f |s(obj, e|xcludeCo| |000026c0| 6d 70 6c 65 78 54 79 70 | 65 73 29 0a 7b 0a 20 20 |mplexTyp|es).{. | |000026d0| 76 61 72 20 70 72 6f 70 | 65 72 74 69 65 73 20 3d |var prop|erties =| |000026e0| 20 22 22 3b 0a 20 20 66 | 6f 72 20 28 70 20 69 6e | "";. f|or (p in| |000026f0| 20 6f 62 6a 29 0a 20 20 | 7b 0a 20 20 20 20 74 72 | obj). |{. tr| |00002700| 79 0a 20 20 20 20 7b 0a | 20 20 20 20 20 20 69 66 |y. {.| if| |00002710| 20 28 65 78 63 6c 75 64 | 65 43 6f 6d 70 6c 65 78 | (exclud|eComplex| |00002720| 54 79 70 65 73 0a 20 20 | 20 20 20 20 20 20 20 20 |Types. | | |00002730| 26 26 20 28 74 79 70 65 | 6f 66 20 6f 62 6a 5b 70 |&& (type|of obj[p| |00002740| 5d 20 3d 3d 20 27 6f 62 | 6a 65 63 74 27 20 7c 7c |] == 'ob|ject' ||| |00002750| 20 74 79 70 65 6f 66 20 | 6f 62 6a 5b 70 5d 20 3d | typeof |obj[p] =| |00002760| 3d 20 27 66 75 6e 63 74 | 69 6f 6e 27 29 29 20 6e |= 'funct|ion')) n| |00002770| 65 78 74 3b 0a 20 20 20 | 20 20 20 70 72 6f 70 65 |ext;. | prope| |00002780| 72 74 69 65 73 20 2b 3d | 20 70 20 2b 20 22 20 3d |rties +=| p + " =| |00002790| 20 22 20 2b 20 6f 62 6a | 5b 70 5d 20 2b 20 22 5c | " + obj|[p] + "\| |000027a0| 6e 22 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 63 61 |n";. |}. ca| |000027b0| 74 63 68 28 65 29 20 7b | 0a 20 20 20 20 20 20 70 |tch(e) {|. p| |000027c0| 72 6f 70 65 72 74 69 65 | 73 20 2b 3d 20 70 20 2b |ropertie|s += p +| |000027d0| 20 22 20 3d 20 22 20 2b | 20 65 20 2b 20 22 5c 6e | " = " +| e + "\n| |000027e0| 22 3b 0a 20 20 20 20 7d | 0a 20 20 7d 0a 20 20 72 |";. }|. }. r| |000027f0| 65 74 75 72 6e 20 70 72 | 6f 70 65 72 74 69 65 73 |eturn pr|operties| |00002800| 3b 0a 7d 0a 0a 2f 2f 20 | 6d 69 6e 69 6d 61 6c 20 |;.}..// |minimal | |00002810| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o| |00002820| 66 20 6e 73 49 4f 75 74 | 70 75 74 53 74 72 65 61 |f nsIOut|putStrea| |00002830| 6d 20 66 6f 72 20 75 73 | 65 20 62 79 20 64 75 6d |m for us|e by dum| |00002840| 70 52 44 46 2c 20 61 64 | 61 70 74 65 64 20 66 72 |pRDF, ad|apted fr| |00002850| 6f 6d 0a 2f 2f 20 68 74 | 74 70 3a 2f 2f 67 72 6f |om.// ht|tp://gro| |00002860| 75 70 73 2e 67 6f 6f 67 | 6c 65 2e 63 6f 6d 2f 67 |ups.goog|le.com/g| |00002870| 72 6f 75 70 73 3f 73 65 | 6c 6d 3d 32 30 30 31 31 |roups?se|lm=20011| |00002880| 32 30 33 31 31 31 36 31 | 38 2e 43 31 33 30 32 25 |20311161|8.C1302%| |00002890| 34 30 65 72 64 65 2e 6a | 61 6e 2e 6e 65 74 67 61 |40erde.j|an.netga| |000028a0| 72 6f 6f 2e 64 65 0a 76 | 61 72 20 44 75 6d 70 4f |roo.de.v|ar DumpO| |000028b0| 75 74 70 75 74 53 74 72 | 65 61 6d 20 3d 20 7b 0a |utputStr|eam = {.| |000028c0| 20 20 77 72 69 74 65 3a | 20 66 75 6e 63 74 69 6f | write:| functio| |000028d0| 6e 28 62 75 66 2c 20 63 | 6f 75 6e 74 29 20 7b 20 |n(buf, c|ount) { | |000028e0| 64 75 6d 70 28 62 75 66 | 29 3b 20 72 65 74 75 72 |dump(buf|); retur| |000028f0| 6e 20 63 6f 75 6e 74 3b | 20 7d 0a 7d 3b 0a 0a 66 |n count;| }.};..f| |00002900| 75 6e 63 74 69 6f 6e 20 | 64 75 6d 70 52 44 46 28 |unction |dumpRDF(| |00002910| 20 61 44 53 20 29 20 7b | 0a 20 20 76 61 72 20 73 | aDS ) {|. var s| |00002920| 65 72 69 61 6c 69 7a 65 | 72 20 3d 20 43 6f 6d 70 |erialize|r = Comp| |00002930| 6f 6e 65 6e 74 73 2e 63 | 6c 61 73 73 65 73 5b 22 |onents.c|lasses["| |00002940| 40 6d 6f 7a 69 6c 6c 61 | 2e 6f 72 67 2f 72 64 66 |@mozilla|.org/rdf| |00002950| 2f 78 6d 6c 2d 73 65 72 | 69 61 6c 69 7a 65 72 3b |/xml-ser|ializer;| |00002960| 31 22 5d 0a 20 20 20 20 | 2e 63 72 65 61 74 65 49 |1"]. |.createI| |00002970| 6e 73 74 61 6e 63 65 28 | 20 43 6f 6d 70 6f 6e 65 |nstance(| Compone| |00002980| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n| |00002990| 73 49 52 44 46 58 4d 4c | 53 65 72 69 61 6c 69 7a |sIRDFXML|Serializ| |000029a0| 65 72 20 29 3b 0a 20 20 | 0a 20 20 73 65 72 69 61 |er );. |. seria| |000029b0| 6c 69 7a 65 72 2e 69 6e | 69 74 28 20 61 44 53 20 |lizer.in|it( aDS | |000029c0| 29 3b 0a 20 20 0a 20 20 | 73 65 72 69 61 6c 69 7a |);. . |serializ| |000029d0| 65 72 2e 51 75 65 72 79 | 49 6e 74 65 72 66 61 63 |er.Query|Interfac| |000029e0| 65 28 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |e( Compo|nents.in| |000029f0| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 52 44 46 58 |terfaces|.nsIRDFX| |00002a00| 4d 4c 53 6f 75 72 63 65 | 20 29 0a 20 20 20 20 2e |MLSource| ). .| |00002a10| 53 65 72 69 61 6c 69 7a | 65 28 20 44 75 6d 70 4f |Serializ|e( DumpO| |00002a20| 75 74 70 75 74 53 74 72 | 65 61 6d 20 29 3b 0a 7d |utputStr|eam );.}| |00002a30| 0a 50 4b 03 04 0a 00 00 | 00 00 00 69 bb 2f 36 16 |.PK.....|...i./6.| |00002a40| c9 27 84 b7 37 00 00 b7 | 37 00 00 22 00 00 00 63 |.'..7...|7.."...c| |00002a50| 6f 6e 74 65 6e 74 2f 6d | 65 73 73 65 6e 67 65 72 |ontent/m|essenger| |00002a60| 2d 6e 65 77 73 62 6c 6f | 67 2f 46 65 65 64 2e 6a |-newsblo|g/Feed.j| |00002a70| 73 2f 2f 40 6c 69 6e 65 | 20 33 37 20 22 2f 62 75 |s//@line| 37 "/bu| |00002a80| 69 6c 64 2f 62 75 69 6c | 64 64 2f 6d 6f 7a 69 6c |ild/buil|dd/mozil| |00002a90| 6c 61 2d 74 68 75 6e 64 | 65 72 62 69 72 64 2d 31 |la-thund|erbird-1| |00002aa0| 2e 35 2e 30 2e 31 30 2f | 62 75 69 6c 64 2d 64 69 |.5.0.10/|build-di| |00002ab0| 72 2f 6d 6f 7a 69 6c 6c | 61 2f 6d 61 69 6c 2f 65 |r/mozill|a/mail/e| |00002ac0| 78 74 65 6e 73 69 6f 6e | 73 2f 6e 65 77 73 62 6c |xtension|s/newsbl| |00002ad0| 6f 67 2f 63 6f 6e 74 65 | 6e 74 2f 46 65 65 64 2e |og/conte|nt/Feed.| |00002ae0| 6a 73 22 0a 0a 0a 2f 2f | 20 65 72 72 6f 72 20 63 |js"...//| error c| |00002af0| 6f 64 65 73 20 75 73 65 | 64 20 74 6f 20 69 6e 66 |odes use|d to inf| |00002b00| 6f 72 6d 20 74 68 65 20 | 63 6f 6e 73 75 6d 65 72 |orm the |consumer| |00002b10| 20 61 62 6f 75 74 20 61 | 74 74 65 6d 70 74 73 20 | about a|ttempts | |00002b20| 74 6f 20 64 6f 77 6e 6c | 6f 61 64 20 61 20 66 65 |to downl|oad a fe| |00002b30| 65 64 0a 63 6f 6e 73 74 | 20 6b 4e 65 77 73 42 6c |ed.const| kNewsBl| |00002b40| 6f 67 53 75 63 63 65 73 | 73 20 3d 20 30 3b 0a 63 |ogSucces|s = 0;.c| |00002b50| 6f 6e 73 74 20 6b 4e 65 | 77 73 42 6c 6f 67 49 6e |onst kNe|wsBlogIn| |00002b60| 76 61 6c 69 64 46 65 65 | 64 20 3d 20 31 3b 20 2f |validFee|d = 1; /| |00002b70| 2f 20 75 73 75 61 6c 6c | 79 20 6d 65 61 6e 73 20 |/ usuall|y means | |00002b80| 74 68 65 72 65 20 77 61 | 73 20 61 6e 20 65 72 72 |there wa|s an err| |00002b90| 6f 72 20 74 72 79 69 6e | 67 20 74 6f 20 70 61 72 |or tryin|g to par| |00002ba0| 73 65 20 74 68 65 20 66 | 65 65 64 2e 2e 2e 0a 63 |se the f|eed....c| |00002bb0| 6f 6e 73 74 20 6b 4e 65 | 77 73 42 6c 6f 67 52 65 |onst kNe|wsBlogRe| |00002bc0| 71 75 65 73 74 46 61 69 | 6c 75 72 65 20 3d 20 32 |questFai|lure = 2| |00002bd0| 3b 20 2f 2f 20 67 65 6e | 65 72 69 63 20 6e 65 74 |; // gen|eric net| |00002be0| 77 6f 72 6b 69 6e 67 20 | 66 61 69 6c 75 72 65 20 |working |failure | |00002bf0| 77 68 65 6e 20 74 72 79 | 69 6e 67 20 74 6f 20 64 |when try|ing to d| |00002c00| 6f 77 6e 6c 6f 61 64 20 | 74 68 65 20 66 65 65 64 |ownload |the feed| |00002c10| 2e 0a 63 6f 6e 73 74 20 | 6b 4e 65 77 73 42 6c 6f |..const |kNewsBlo| |00002c20| 67 46 65 65 64 49 73 42 | 75 73 79 20 3d 20 33 3b |gFeedIsB|usy = 3;| |00002c30| 0a 63 6f 6e 73 74 20 6b | 4e 65 77 73 42 6c 6f 67 |.const k|NewsBlog| |00002c40| 4e 6f 4e 65 77 49 74 65 | 6d 73 20 3d 20 34 3b 20 |NoNewIte|ms = 4; | |00002c50| 2f 2f 20 74 68 65 72 65 | 20 61 72 65 20 6e 6f 20 |// there| are no | |00002c60| 6e 65 77 20 61 72 74 69 | 63 6c 65 73 20 66 6f 72 |new arti|cles for| |00002c70| 20 74 68 69 73 20 66 65 | 65 64 0a 0a 2f 2f 20 43 | this fe|ed..// C| |00002c80| 61 63 68 65 20 66 6f 72 | 20 61 6c 6c 20 6f 66 20 |ache for| all of | |00002c90| 74 68 65 20 66 65 65 64 | 73 20 63 75 72 72 65 6e |the feed|s curren| |00002ca0| 74 6c 79 20 62 65 69 6e | 67 20 64 6f 77 6e 6c 6f |tly bein|g downlo| |00002cb0| 61 64 65 64 2c 20 69 6e | 64 65 78 65 64 20 62 79 |aded, in|dexed by| |00002cc0| 20 55 52 4c 2c 20 73 6f | 20 74 68 65 20 6c 6f 61 | URL, so| the loa| |00002cd0| 64 20 65 76 65 6e 74 20 | 6c 69 73 74 65 6e 65 72 |d event |listener| |00002ce0| 0a 2f 2f 20 63 61 6e 20 | 61 63 63 65 73 73 20 74 |.// can |access t| |00002cf0| 68 65 20 46 65 65 64 20 | 6f 62 6a 65 63 74 73 20 |he Feed |objects | |00002d00| 61 66 74 65 72 20 69 74 | 20 66 69 6e 69 73 68 65 |after it| finishe| |00002d10| 73 20 64 6f 77 6e 6c 6f | 61 64 69 6e 67 20 74 68 |s downlo|ading th| |00002d20| 65 20 66 65 65 64 2e 0a | 76 61 72 20 46 65 65 64 |e feed..|var Feed| |00002d30| 43 61 63 68 65 20 3d 20 | 0a 7b 0a 20 20 6d 46 65 |Cache = |.{. mFe| |00002d40| 65 64 73 3a 20 6e 65 77 | 20 41 72 72 61 79 28 29 |eds: new| Array()| |00002d50| 2c 0a 0a 20 20 70 75 74 | 46 65 65 64 3a 20 66 75 |,.. put|Feed: fu| |00002d60| 6e 63 74 69 6f 6e 20 28 | 61 46 65 65 64 29 0a 20 |nction (|aFeed). | |00002d70| 20 7b 0a 20 20 20 20 74 | 68 69 73 2e 6d 46 65 65 | {. t|his.mFee| |00002d80| 64 73 5b 74 68 69 73 2e | 6e 6f 72 6d 61 6c 69 7a |ds[this.|normaliz| |00002d90| 65 48 6f 73 74 28 61 46 | 65 65 64 2e 75 72 6c 29 |eHost(aF|eed.url)| |00002da0| 5d 20 3d 20 61 46 65 65 | 64 3b 0a 20 20 7d 2c 0a |] = aFee|d;. },.| |00002db0| 0a 20 20 67 65 74 46 65 | 65 64 3a 20 66 75 6e 63 |. getFe|ed: func| |00002dc0| 74 69 6f 6e 20 28 61 55 | 72 6c 29 0a 20 20 7b 0a |tion (aU|rl). {.| |00002dd0| 20 20 20 20 72 65 74 75 | 72 6e 20 74 68 69 73 2e | retu|rn this.| |00002de0| 6d 46 65 65 64 73 5b 74 | 68 69 73 2e 6e 6f 72 6d |mFeeds[t|his.norm| |00002df0| 61 6c 69 7a 65 48 6f 73 | 74 28 61 55 72 6c 29 5d |alizeHos|t(aUrl)]| |00002e00| 3b 0a 20 20 7d 2c 0a 0a | 20 20 72 65 6d 6f 76 65 |;. },..| remove| |00002e10| 46 65 65 64 3a 20 66 75 | 6e 63 74 69 6f 6e 20 28 |Feed: fu|nction (| |00002e20| 61 55 72 6c 29 0a 20 20 | 7b 0a 20 20 20 20 64 65 |aUrl). |{. de| |00002e30| 6c 65 74 65 20 74 68 69 | 73 2e 6d 46 65 65 64 73 |lete thi|s.mFeeds| |00002e40| 5b 74 68 69 73 2e 6e 6f | 72 6d 61 6c 69 7a 65 48 |[this.no|rmalizeH| |00002e50| 6f 73 74 28 61 55 72 6c | 29 5d 3b 0a 20 20 7d 2c |ost(aUrl|)];. },| |00002e60| 0a 0a 20 20 6e 6f 72 6d | 61 6c 69 7a 65 48 6f 73 |.. norm|alizeHos| |00002e70| 74 3a 20 66 75 6e 63 74 | 69 6f 6e 20 28 61 55 72 |t: funct|ion (aUr| |00002e80| 6c 29 0a 20 20 7b 0a 20 | 20 20 20 76 61 72 20 69 |l). {. | var i| |00002e90| 6f 53 65 72 76 69 63 65 | 20 3d 20 43 6f 6d 70 6f |oService| = Compo| |00002ea0| 6e 65 6e 74 73 2e 63 6c | 61 73 73 65 73 5b 22 40 |nents.cl|asses["@| |00002eb0| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 6e 65 74 77 |mozilla.|org/netw| |00002ec0| 6f 72 6b 2f 69 6f 2d 73 | 65 72 76 69 63 65 3b 31 |ork/io-s|ervice;1| |00002ed0| 22 5d 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |"].. | | |00002ee0| 20 20 20 20 20 20 20 20 | 67 65 74 53 65 72 76 69 | |getServi| |00002ef0| 63 65 28 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |ce(Compo|nents.in| |00002f00| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 49 4f 53 65 |terfaces|.nsIIOSe| |00002f10| 72 76 69 63 65 29 3b 0a | 20 20 20 20 76 61 72 20 |rvice);.| var | |00002f20| 6e 6f 72 6d 61 6c 69 7a | 65 64 55 72 6c 20 3d 20 |normaliz|edUrl = | |00002f30| 69 6f 53 65 72 76 69 63 | 65 2e 6e 65 77 55 52 49 |ioServic|e.newURI| |00002f40| 28 61 55 72 6c 2c 20 6e | 75 6c 6c 2c 20 6e 75 6c |(aUrl, n|ull, nul| |00002f50| 6c 29 3b 0a 20 20 20 20 | 6e 6f 72 6d 61 6c 69 7a |l);. |normaliz| |00002f60| 65 64 55 72 6c 2e 68 6f | 73 74 20 3d 20 6e 6f 72 |edUrl.ho|st = nor| |00002f70| 6d 61 6c 69 7a 65 64 55 | 72 6c 2e 68 6f 73 74 2e |malizedU|rl.host.| |00002f80| 74 6f 4c 6f 77 65 72 43 | 61 73 65 28 29 3b 0a 20 |toLowerC|ase();. | |00002f90| 20 20 20 72 65 74 75 72 | 6e 20 6e 6f 72 6d 61 6c | retur|n normal| |00002fa0| 69 7a 65 64 55 72 6c 2e | 73 70 65 63 3b 0a 20 20 |izedUrl.|spec;. | |00002fb0| 7d 0a 7d 3b 0a 0a 66 75 | 6e 63 74 69 6f 6e 20 46 |}.};..fu|nction F| |00002fc0| 65 65 64 28 61 52 65 73 | 6f 75 72 63 65 2c 20 61 |eed(aRes|ource, a| |00002fd0| 52 53 53 53 65 72 76 65 | 72 29 20 0a 7b 0a 20 20 |RSSServe|r) .{. | |00002fe0| 74 68 69 73 2e 72 65 73 | 6f 75 72 63 65 20 3d 20 |this.res|ource = | |00002ff0| 61 52 65 73 6f 75 72 63 | 65 2e 51 75 65 72 79 49 |aResourc|e.QueryI| |00003000| 6e 74 65 72 66 61 63 65 | 28 43 6f 6d 70 6f 6e 65 |nterface|(Compone| |00003010| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n| |00003020| 73 49 52 44 46 52 65 73 | 6f 75 72 63 65 29 3b 0a |sIRDFRes|ource);.| |00003030| 20 20 74 68 69 73 2e 73 | 65 72 76 65 72 20 3d 20 | this.s|erver = | |00003040| 61 52 53 53 53 65 72 76 | 65 72 3b 0a 7d 0a 0a 46 |aRSSServ|er;.}..F| |00003050| 65 65 64 2e 70 72 6f 74 | 6f 74 79 70 65 20 3d 20 |eed.prot|otype = | |00003060| 0a 7b 0a 20 20 64 65 73 | 63 72 69 70 74 69 6f 6e |.{. des|cription| |00003070| 3a 20 6e 75 6c 6c 2c 0a | 20 20 61 75 74 68 6f 72 |: null,.| author| |00003080| 3a 20 6e 75 6c 6c 2c 0a | 20 20 72 65 71 75 65 73 |: null,.| reques| |00003090| 74 3a 20 6e 75 6c 6c 2c | 0a 20 20 73 65 72 76 65 |t: null,|. serve| |000030a0| 72 3a 20 6e 75 6c 6c 2c | 0a 20 20 64 6f 77 6e 6c |r: null,|. downl| |000030b0| 6f 61 64 43 61 6c 6c 62 | 61 63 6b 3a 20 6e 75 6c |oadCallb|ack: nul| |000030c0| 6c 2c 0a 20 20 72 65 73 | 6f 75 72 63 65 3a 20 6e |l,. res|ource: n| |000030d0| 75 6c 6c 2c 0a 20 20 69 | 74 65 6d 73 3a 20 6e 65 |ull,. i|tems: ne| |000030e0| 77 20 41 72 72 61 79 28 | 29 2c 0a 20 20 6d 46 6f |w Array(|),. mFo| |000030f0| 6c 64 65 72 3a 20 6e 75 | 6c 6c 2c 0a 0a 20 20 67 |lder: nu|ll,.. g| |00003100| 65 74 20 66 6f 6c 64 65 | 72 28 29 0a 20 20 7b 0a |et folde|r(). {.| |00003110| 20 20 20 20 69 66 20 28 | 21 74 68 69 73 2e 6d 46 | if (|!this.mF| |00003120| 6f 6c 64 65 72 29 0a 20 | 20 20 20 7b 0a 20 20 20 |older). | {. | |00003130| 20 20 20 74 72 79 20 0a | 20 20 20 20 20 20 7b 0a | try .| {.| |00003140| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 6d 46 6f | |this.mFo| |00003150| 6c 64 65 72 20 3d 20 74 | 68 69 73 2e 73 65 72 76 |lder = t|his.serv| |00003160| 65 72 2e 72 6f 6f 74 4d | 73 67 46 6f 6c 64 65 72 |er.rootM|sgFolder| |00003170| 2e 67 65 74 43 68 69 6c | 64 4e 61 6d 65 64 28 74 |.getChil|dNamed(t| |00003180| 68 69 73 2e 6e 61 6d 65 | 29 3b 0a 20 20 20 20 20 |his.name|);. | |00003190| 20 7d 20 63 61 74 63 68 | 20 28 65 78 29 20 7b 7d | } catch| (ex) {}| |000031a0| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 72 65 74 75 |. }..| retu| |000031b0| 72 6e 20 74 68 69 73 2e | 6d 46 6f 6c 64 65 72 3b |rn this.|mFolder;| |000031c0| 0a 20 20 7d 2c 0a 0a 20 | 20 73 65 74 20 66 6f 6c |. },.. | set fol| |000031d0| 64 65 72 20 28 61 46 6f | 6c 64 65 72 29 20 0a 20 |der (aFo|lder) . | |000031e0| 20 7b 0a 20 20 20 20 74 | 68 69 73 2e 6d 46 6f 6c | {. t|his.mFol| |000031f0| 64 65 72 20 3d 20 61 46 | 6f 6c 64 65 72 3b 0a 20 |der = aF|older;. | |00003200| 20 7d 2c 0a 0a 20 20 67 | 65 74 20 6e 61 6d 65 28 | },.. g|et name(| |00003210| 29 0a 20 20 7b 0a 20 20 | 20 20 76 61 72 20 6e 61 |). {. | var na| |00003220| 6d 65 20 3d 20 74 68 69 | 73 2e 74 69 74 6c 65 20 |me = thi|s.title | |00003230| 7c 7c 20 74 68 69 73 2e | 64 65 73 63 72 69 70 74 ||| this.|descript| |00003240| 69 6f 6e 20 7c 7c 20 74 | 68 69 73 2e 75 72 6c 3b |ion || t|his.url;| |00003250| 0a 20 20 20 20 69 66 20 | 28 21 6e 61 6d 65 29 0a |. if |(!name).| |00003260| 20 20 20 20 20 20 74 68 | 72 6f 77 28 22 63 6f 75 | th|row("cou| |00003270| 6c 64 6e 27 74 20 63 6f | 6d 70 75 74 65 20 66 65 |ldn't co|mpute fe| |00003280| 65 64 20 6e 61 6d 65 2c | 20 61 73 20 66 65 65 64 |ed name,| as feed| |00003290| 20 68 61 73 20 6e 6f 20 | 74 69 74 6c 65 2c 20 64 | has no |title, d| |000032a0| 65 73 63 72 69 70 74 69 | 6f 6e 2c 20 6f 72 20 55 |escripti|on, or U| |000032b0| 52 4c 2e 22 29 3b 0a 0a | 20 20 20 20 2f 2f 20 4d |RL.");..| // M| |000032c0| 61 6b 65 20 73 75 72 65 | 20 74 68 65 20 66 65 65 |ake sure| the fee| |000032d0| 64 20 6e 61 6d 65 20 64 | 6f 65 73 6e 27 74 20 68 |d name d|oesn't h| |000032e0| 61 76 65 20 61 6e 79 20 | 6c 69 6e 65 20 62 72 65 |ave any |line bre| |000032f0| 61 6b 73 2c 20 73 69 6e | 63 65 20 77 65 27 72 65 |aks, sin|ce we're| |00003300| 20 67 6f 69 6e 67 0a 20 | 20 20 20 2f 2f 20 74 6f | going. | // to| |00003310| 20 75 73 65 20 69 74 20 | 61 73 20 74 68 65 20 6e | use it |as the n| |00003320| 61 6d 65 20 6f 66 20 74 | 68 65 20 66 6f 6c 64 65 |ame of t|he folde| |00003330| 72 20 69 6e 20 74 68 65 | 20 66 69 6c 65 73 79 73 |r in the| filesys| |00003340| 74 65 6d 2e 20 20 54 68 | 69 73 20 6d 61 79 20 6e |tem. Th|is may n| |00003350| 6f 74 0a 20 20 20 20 2f | 2f 20 62 65 20 6e 65 63 |ot. /|/ be nec| |00003360| 65 73 73 61 72 79 2c 20 | 73 69 6e 63 65 20 4d 6f |essary, |since Mo| |00003370| 7a 69 6c 6c 61 27 73 20 | 6d 61 69 6c 20 63 6f 64 |zilla's |mail cod| |00003380| 65 20 73 65 65 6d 73 20 | 74 6f 20 68 61 6e 64 6c |e seems |to handl| |00003390| 65 20 6f 74 68 65 72 20 | 66 6f 72 62 69 64 64 65 |e other |forbidde| |000033a0| 6e 0a 20 20 20 20 2f 2f | 20 63 68 61 72 61 63 74 |n. //| charact| |000033b0| 65 72 73 20 69 6e 20 66 | 69 6c 65 6e 61 6d 65 73 |ers in f|ilenames| |000033c0| 20 61 6e 64 20 63 61 6e | 20 70 72 6f 62 61 62 6c | and can| probabl| |000033d0| 79 20 68 61 6e 64 6c 65 | 20 74 68 65 73 65 20 61 |y handle| these a| |000033e0| 73 20 77 65 6c 6c 2e 0a | 20 20 20 20 6e 61 6d 65 |s well..| name| |000033f0| 20 3d 20 6e 61 6d 65 2e | 72 65 70 6c 61 63 65 28 | = name.|replace(| |00003400| 2f 5b 5c 6e 5c 72 5c 74 | 5d 2b 2f 67 2c 20 22 20 |/[\n\r\t|]+/g, " | |00003410| 22 29 3b 0a 0a 20 20 20 | 20 2f 2f 20 4d 61 6b 65 |");.. | // Make| |00003420| 20 73 75 72 65 20 74 68 | 65 20 66 65 65 64 20 64 | sure th|e feed d| |00003430| 6f 65 73 6e 27 74 20 65 | 6e 64 20 69 6e 20 61 20 |oesn't e|nd in a | |00003440| 70 65 72 69 6f 64 20 74 | 6f 20 77 6f 72 6b 20 61 |period t|o work a| |00003450| 72 6f 75 6e 64 20 62 75 | 67 20 31 31 37 38 34 30 |round bu|g 117840| |00003460| 2e 0a 20 20 20 20 6e 61 | 6d 65 20 3d 20 6e 61 6d |.. na|me = nam| |00003470| 65 2e 72 65 70 6c 61 63 | 65 28 2f 5c 2e 2b 24 2f |e.replac|e(/\.+$/| |00003480| 2c 20 22 22 29 3b 0a 0a | 20 20 20 20 72 65 74 75 |, "");..| retu| |00003490| 72 6e 20 6e 61 6d 65 3b | 0a 20 20 7d 2c 0a 0a 20 |rn name;|. },.. | |000034a0| 20 64 6f 77 6e 6c 6f 61 | 64 3a 20 66 75 6e 63 74 | downloa|d: funct| |000034b0| 69 6f 6e 28 61 50 61 72 | 73 65 49 74 65 6d 73 2c |ion(aPar|seItems,| |000034c0| 20 61 43 61 6c 6c 62 61 | 63 6b 29 20 0a 20 20 7b | aCallba|ck) . {| |000034d0| 20 0a 20 20 20 20 74 68 | 69 73 2e 64 6f 77 6e 6c | . th|is.downl| |000034e0| 6f 61 64 43 61 6c 6c 62 | 61 63 6b 20 3d 20 61 43 |oadCallb|ack = aC| |000034f0| 61 6c 6c 62 61 63 6b 3b | 20 2f 2f 20 6d 61 79 20 |allback;| // may | |00003500| 62 65 20 6e 75 6c 6c 20 | 0a 0a 20 20 20 20 2f 2f |be null |.. //| |00003510| 20 57 68 65 74 68 65 72 | 20 6f 72 20 6e 6f 74 20 | Whether| or not | |00003520| 74 6f 20 70 61 72 73 65 | 20 69 74 65 6d 73 20 77 |to parse| items w| |00003530| 68 65 6e 20 64 6f 77 6e | 6c 6f 61 64 69 6e 67 20 |hen down|loading | |00003540| 61 6e 64 20 70 61 72 73 | 69 6e 67 20 74 68 65 20 |and pars|ing the | |00003550| 66 65 65 64 2e 0a 20 20 | 20 20 2f 2f 20 44 65 66 |feed.. | // Def| |00003560| 61 75 6c 74 73 20 74 6f | 20 74 72 75 65 2c 20 62 |aults to| true, b| |00003570| 75 74 20 73 65 74 74 69 | 6e 67 20 74 6f 20 66 61 |ut setti|ng to fa| |00003580| 6c 73 65 20 69 73 20 75 | 73 65 66 75 6c 20 66 6f |lse is u|seful fo| |00003590| 72 20 6f 62 74 61 69 6e | 69 6e 67 0a 20 20 20 20 |r obtain|ing. | |000035a0| 2f 2f 20 6a 75 73 74 20 | 74 68 65 20 74 69 74 6c |// just |the titl| |000035b0| 65 20 6f 66 20 74 68 65 | 20 66 65 65 64 20 77 68 |e of the| feed wh| |000035c0| 65 6e 20 74 68 65 20 75 | 73 65 72 20 73 75 62 73 |en the u|ser subs| |000035d0| 63 72 69 62 65 73 20 74 | 6f 20 69 74 2e 0a 20 20 |cribes t|o it.. | |000035e0| 20 20 74 68 69 73 2e 70 | 61 72 73 65 49 74 65 6d | this.p|arseItem| |000035f0| 73 20 3d 20 61 50 61 72 | 73 65 49 74 65 6d 73 20 |s = aPar|seItems | |00003600| 3d 3d 20 6e 75 6c 6c 20 | 3f 20 74 72 75 65 20 3a |== null |? true :| |00003610| 20 61 50 61 72 73 65 49 | 74 65 6d 73 20 3f 20 74 | aParseI|tems ? t| |00003620| 72 75 65 20 3a 20 66 61 | 6c 73 65 3b 0a 0a 20 20 |rue : fa|lse;.. | |00003630| 20 20 2f 2f 20 42 65 66 | 6f 72 65 20 77 65 20 64 | // Bef|ore we d| |00003640| 6f 20 61 6e 79 74 68 69 | 6e 67 2e 2e 2e 6d 61 6b |o anythi|ng...mak| |00003650| 65 20 73 75 72 65 20 74 | 68 65 20 75 72 6c 20 69 |e sure t|he url i| |00003660| 73 20 61 6e 20 68 74 74 | 70 20 75 72 6c 2e 20 54 |s an htt|p url. T| |00003670| 68 69 73 20 69 73 20 6a | 75 73 74 20 61 20 73 61 |his is j|ust a sa| |00003680| 6e 69 74 79 20 63 68 65 | 63 6b 0a 20 20 20 20 2f |nity che|ck. /| |00003690| 2f 20 73 6f 20 77 65 20 | 64 6f 6e 27 74 20 74 72 |/ so we |don't tr| |000036a0| 79 20 6f 70 65 6e 69 6e | 67 20 6d 61 69 6c 74 6f |y openin|g mailto| |000036b0| 20 75 72 6c 73 2c 20 69 | 6d 61 70 20 75 72 6c 73 | urls, i|map urls| |000036c0| 2c 20 65 74 63 2e 20 74 | 68 61 74 20 74 68 65 20 |, etc. t|hat the | |000036d0| 75 73 65 72 20 6d 61 79 | 20 68 61 76 65 20 74 72 |user may| have tr| |000036e0| 69 65 64 20 74 6f 20 73 | 75 62 73 63 72 69 62 65 |ied to s|ubscribe| |000036f0| 20 74 6f 20 0a 20 20 20 | 20 2f 2f 20 61 73 20 61 | to . | // as a| |00003700| 6e 20 72 73 73 20 66 65 | 65 64 2e 2e 0a 20 20 20 |n rss fe|ed... | |00003710| 20 76 61 72 20 75 72 69 | 20 3d 20 43 6f 6d 70 6f | var uri| = Compo| |00003720| 6e 65 6e 74 73 2e 63 6c | 61 73 73 65 73 5b 22 40 |nents.cl|asses["@| |00003730| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 6e 65 74 77 |mozilla.|org/netw| |00003740| 6f 72 6b 2f 73 74 61 6e | 64 61 72 64 2d 75 72 6c |ork/stan|dard-url| |00003750| 3b 31 22 5d 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |;1"].. | | |00003760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 72 | | cr| |00003770| 65 61 74 65 49 6e 73 74 | 61 6e 63 65 28 43 6f 6d |eateInst|ance(Com| |00003780| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac| |00003790| 65 73 2e 6e 73 49 55 52 | 49 29 3b 0a 20 20 20 20 |es.nsIUR|I);. | |000037a0| 75 72 69 2e 73 70 65 63 | 20 3d 20 74 68 69 73 2e |uri.spec| = this.| |000037b0| 75 72 6c 3b 0a 20 20 20 | 20 69 66 20 28 21 28 75 |url;. | if (!(u| |000037c0| 72 69 2e 73 63 68 65 6d | 65 49 73 28 22 68 74 74 |ri.schem|eIs("htt| |000037d0| 70 22 29 20 7c 7c 20 75 | 72 69 2e 73 63 68 65 6d |p") || u|ri.schem| |000037e0| 65 49 73 28 22 68 74 74 | 70 73 22 29 29 29 0a 20 |eIs("htt|ps"))). | |000037f0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 74 68 69 73 | ret|urn this| |00003800| 2e 6f 6e 50 61 72 73 65 | 45 72 72 6f 72 28 74 68 |.onParse|Error(th| |00003810| 69 73 29 3b 20 2f 2f 20 | 73 69 6d 75 6c 61 74 65 |is); // |simulate| |00003820| 20 61 6e 20 69 6e 76 61 | 6c 69 64 20 66 65 65 64 | an inva|lid feed| |00003830| 20 65 72 72 6f 72 0a 0a | 20 20 20 20 2f 2f 20 42 | error..| // B| |00003840| 65 66 6f 72 65 20 77 65 | 20 74 72 79 20 74 6f 20 |efore we| try to | |00003850| 64 6f 77 6e 6c 6f 61 64 | 20 74 68 65 20 66 65 65 |download| the fee| |00003860| 64 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 77 65 20 |d, make |sure we | |00003870| 61 72 65 6e 27 74 20 61 | 6c 72 65 61 64 79 20 70 |aren't a|lready p| |00003880| 72 6f 63 65 73 73 69 6e | 67 20 74 68 65 20 66 65 |rocessin|g the fe| |00003890| 65 64 0a 20 20 20 20 2f | 2f 20 62 79 20 6c 6f 6f |ed. /|/ by loo| |000038a0| 6b 69 6e 67 20 75 70 20 | 74 68 65 20 75 72 6c 20 |king up |the url | |000038b0| 69 6e 20 6f 75 72 20 66 | 65 65 64 20 63 61 63 68 |in our f|eed cach| |000038c0| 65 0a 20 20 20 20 69 66 | 20 28 46 65 65 64 43 61 |e. if| (FeedCa| |000038d0| 63 68 65 2e 67 65 74 46 | 65 65 64 28 74 68 69 73 |che.getF|eed(this| |000038e0| 2e 75 72 6c 29 29 0a 20 | 20 20 20 7b 0a 20 20 20 |.url)). | {. | |000038f0| 20 20 20 69 66 20 28 74 | 68 69 73 2e 64 6f 77 6e | if (t|his.down| |00003900| 6c 6f 61 64 43 61 6c 6c | 62 61 63 6b 29 0a 20 20 |loadCall|back). | |00003910| 20 20 20 20 20 20 74 68 | 69 73 2e 64 6f 77 6e 6c | th|is.downl| |00003920| 6f 61 64 43 61 6c 6c 62 | 61 63 6b 2e 64 6f 77 6e |oadCallb|ack.down| |00003930| 6c 6f 61 64 65 64 28 74 | 68 69 73 2c 20 6b 4e 65 |loaded(t|his, kNe| |00003940| 77 73 42 6c 6f 67 46 65 | 65 64 49 73 42 75 73 79 |wsBlogFe|edIsBusy| |00003950| 29 3b 0a 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |);. | return | |00003960| 3b 20 2f 2f 20 64 6f 6e | 27 74 20 64 6f 20 61 6e |; // don|'t do an| |00003970| 79 74 68 69 6e 67 2c 20 | 74 68 65 20 66 65 65 64 |ything, |the feed| |00003980| 20 69 73 20 61 6c 72 65 | 61 64 79 20 69 6e 20 75 | is alre|ady in u| |00003990| 73 65 0a 20 20 20 20 7d | 0a 0a 20 20 20 20 74 68 |se. }|.. th| |000039a0| 69 73 2e 72 65 71 75 65 | 73 74 20 3d 20 43 6f 6d |is.reque|st = Com| |000039b0| 70 6f 6e 65 6e 74 73 2e | 63 6c 61 73 73 65 73 5b |ponents.|classes[| |000039c0| 22 40 6d 6f 7a 69 6c 6c | 61 2e 6f 72 67 2f 78 6d |"@mozill|a.org/xm| |000039d0| 6c 65 78 74 72 61 73 2f | 78 6d 6c 68 74 74 70 72 |lextras/|xmlhttpr| |000039e0| 65 71 75 65 73 74 3b 31 | 22 5d 0a 20 20 20 20 20 |equest;1|"]. | |000039f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2e 63 | | .c| |00003a00| 72 65 61 74 65 49 6e 73 | 74 61 6e 63 65 28 43 6f |reateIns|tance(Co| |00003a10| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa| |00003a20| 63 65 73 2e 6e 73 49 58 | 4d 4c 48 74 74 70 52 65 |ces.nsIX|MLHttpRe| |00003a30| 71 75 65 73 74 29 3b 0a | 20 20 20 20 74 68 69 73 |quest);.| this| |00003a40| 2e 72 65 71 75 65 73 74 | 2e 6f 6e 70 72 6f 67 72 |.request|.onprogr| |00003a50| 65 73 73 20 3d 20 74 68 | 69 73 2e 6f 6e 50 72 6f |ess = th|is.onPro| |00003a60| 67 72 65 73 73 3b 20 2f | 2f 20 6d 75 73 74 20 62 |gress; /|/ must b| |00003a70| 65 20 73 65 74 20 62 65 | 66 6f 72 65 20 63 61 6c |e set be|fore cal| |00003a80| 6c 69 6e 67 20 2e 6f 70 | 65 6e 0a 20 20 20 20 74 |ling .op|en. t| |00003a90| 68 69 73 2e 72 65 71 75 | 65 73 74 2e 6f 70 65 6e |his.requ|est.open| |00003aa0| 28 22 47 45 54 22 2c 20 | 74 68 69 73 2e 75 72 6c |("GET", |this.url| |00003ab0| 2c 20 74 72 75 65 29 3b | 0a 0a 20 20 20 20 76 61 |, true);|.. va| |00003ac0| 72 20 6c 61 73 74 4d 6f | 64 69 66 69 65 64 20 3d |r lastMo|dified =| |00003ad0| 20 74 68 69 73 2e 6c 61 | 73 74 4d 6f 64 69 66 69 | this.la|stModifi| |00003ae0| 65 64 3b 0a 20 20 20 20 | 69 66 20 28 6c 61 73 74 |ed;. |if (last| |00003af0| 4d 6f 64 69 66 69 65 64 | 29 0a 20 20 20 20 20 20 |Modified|). | |00003b00| 74 68 69 73 2e 72 65 71 | 75 65 73 74 2e 73 65 74 |this.req|uest.set| |00003b10| 52 65 71 75 65 73 74 48 | 65 61 64 65 72 28 22 49 |RequestH|eader("I| |00003b20| 66 2d 4d 6f 64 69 66 69 | 65 64 2d 53 69 6e 63 65 |f-Modifi|ed-Since| |00003b30| 22 2c 20 6c 61 73 74 4d | 6f 64 69 66 69 65 64 29 |", lastM|odified)| |00003b40| 3b 0a 0a 20 20 20 20 74 | 68 69 73 2e 72 65 71 75 |;.. t|his.requ| |00003b50| 65 73 74 2e 6f 76 65 72 | 72 69 64 65 4d 69 6d 65 |est.over|rideMime| |00003b60| 54 79 70 65 28 22 74 65 | 78 74 2f 78 6d 6c 22 29 |Type("te|xt/xml")| |00003b70| 3b 0a 20 20 20 20 74 68 | 69 73 2e 72 65 71 75 65 |;. th|is.reque| |00003b80| 73 74 2e 6f 6e 6c 6f 61 | 64 20 3d 20 74 68 69 73 |st.onloa|d = this| |00003b90| 2e 6f 6e 44 6f 77 6e 6c | 6f 61 64 65 64 3b 0a 20 |.onDownl|oaded;. | |00003ba0| 20 20 20 74 68 69 73 2e | 72 65 71 75 65 73 74 2e | this.|request.| |00003bb0| 6f 6e 65 72 72 6f 72 20 | 3d 20 74 68 69 73 2e 6f |onerror |= this.o| |00003bc0| 6e 44 6f 77 6e 6c 6f 61 | 64 45 72 72 6f 72 3b 0a |nDownloa|dError;.| |00003bd0| 20 20 20 20 46 65 65 64 | 43 61 63 68 65 2e 70 75 | Feed|Cache.pu| |00003be0| 74 46 65 65 64 28 74 68 | 69 73 29 3b 0a 20 20 20 |tFeed(th|is);. | |00003bf0| 20 74 68 69 73 2e 72 65 | 71 75 65 73 74 2e 73 65 | this.re|quest.se| |00003c00| 6e 64 28 6e 75 6c 6c 29 | 3b 0a 20 20 7d 2c 20 0a |nd(null)|;. }, .| |00003c10| 0a 20 20 6f 6e 44 6f 77 | 6e 6c 6f 61 64 65 64 3a |. onDow|nloaded:| |00003c20| 20 66 75 6e 63 74 69 6f | 6e 28 61 45 76 65 6e 74 | functio|n(aEvent| |00003c30| 29 20 0a 20 20 7b 0a 20 | 20 20 20 76 61 72 20 72 |) . {. | var r| |00003c40| 65 71 75 65 73 74 20 3d | 20 61 45 76 65 6e 74 2e |equest =| aEvent.| |00003c50| 74 61 72 67 65 74 3b 0a | 20 20 20 20 76 61 72 20 |target;.| var | |00003c60| 75 72 6c 20 3d 20 72 65 | 71 75 65 73 74 2e 63 68 |url = re|quest.ch| |00003c70| 61 6e 6e 65 6c 2e 6f 72 | 69 67 69 6e 61 6c 55 52 |annel.or|iginalUR| |00003c80| 49 2e 73 70 65 63 3b 0a | 20 20 20 20 64 65 62 75 |I.spec;.| debu| |00003c90| 67 28 75 72 6c 20 2b 20 | 22 20 64 6f 77 6e 6c 6f |g(url + |" downlo| |00003ca0| 61 64 65 64 22 29 3b 0a | 20 20 20 20 76 61 72 20 |aded");.| var | |00003cb0| 66 65 65 64 20 3d 20 46 | 65 65 64 43 61 63 68 65 |feed = F|eedCache| |00003cc0| 2e 67 65 74 46 65 65 64 | 28 75 72 6c 29 3b 0a 20 |.getFeed|(url);. | |00003cd0| 20 20 20 69 66 20 28 21 | 66 65 65 64 29 0a 20 20 | if (!|feed). | |00003ce0| 20 20 20 20 74 68 72 6f | 77 28 22 65 72 72 6f 72 | thro|w("error| |00003cf0| 20 61 66 74 65 72 20 64 | 6f 77 6e 6c 6f 61 64 69 | after d|ownloadi| |00003d00| 6e 67 20 22 20 2b 20 75 | 72 6c 20 2b 20 22 3a 20 |ng " + u|rl + ": | |00003d10| 63 6f 75 6c 64 6e 27 74 | 20 72 65 74 72 69 65 76 |couldn't| retriev| |00003d20| 65 20 66 65 65 64 20 66 | 72 6f 6d 20 72 65 71 75 |e feed f|rom requ| |00003d30| 65 73 74 22 29 3b 0a 0a | 20 20 20 20 2f 2f 20 69 |est");..| // i| |00003d40| 66 20 74 68 65 20 72 65 | 71 75 65 73 74 20 68 61 |f the re|quest ha| |00003d50| 73 20 61 20 4c 61 73 74 | 2d 4d 6f 64 69 66 69 65 |s a Last|-Modifie| |00003d60| 64 20 68 65 61 64 65 72 | 20 6f 6e 20 69 74 2c 20 |d header| on it, | |00003d70| 74 68 65 6e 20 67 6f 20 | 61 68 65 61 64 20 61 6e |then go |ahead an| |00003d80| 64 20 72 65 6d 65 6d 62 | 65 72 0a 20 20 20 20 2f |d rememb|er. /| |00003d90| 2f 20 74 68 61 74 20 61 | 73 20 61 20 70 72 6f 70 |/ that a|s a prop| |00003da0| 65 72 74 79 20 6f 6e 20 | 74 68 65 20 66 65 65 64 |erty on |the feed| |00003db0| 20 73 6f 20 77 65 20 63 | 61 6e 20 75 73 65 20 69 | so we c|an use i| |00003dc0| 74 20 77 68 65 6e 20 6d | 61 6b 69 6e 67 20 66 75 |t when m|aking fu| |00003dd0| 74 75 72 65 20 72 65 71 | 75 65 73 74 73 2e 20 20 |ture req|uests. | |00003de0| 20 20 0a 20 20 20 20 76 | 61 72 20 6c 61 73 74 4d | . v|ar lastM| |00003df0| 6f 64 69 66 69 65 64 48 | 65 61 64 65 72 20 3d 20 |odifiedH|eader = | |00003e00| 72 65 71 75 65 73 74 2e | 67 65 74 52 65 73 70 6f |request.|getRespo| |00003e10| 6e 73 65 48 65 61 64 65 | 72 28 27 4c 61 73 74 2d |nseHeade|r('Last-| |00003e20| 4d 6f 64 69 66 69 65 64 | 27 29 3b 0a 20 20 20 20 |Modified|');. | |00003e30| 69 66 20 28 6c 61 73 74 | 4d 6f 64 69 66 69 65 64 |if (last|Modified| |00003e40| 48 65 61 64 65 72 29 0a | 20 20 20 20 20 20 74 68 |Header).| th| |00003e50| 69 73 2e 6c 61 73 74 4d | 6f 64 69 66 69 65 64 20 |is.lastM|odified | |00003e60| 3d 20 6c 61 73 74 4d 6f | 64 69 66 69 65 64 48 65 |= lastMo|difiedHe| |00003e70| 61 64 65 72 3b 0a 0a 20 | 20 20 20 66 65 65 64 2e |ader;.. | feed.| |00003e80| 70 61 72 73 65 28 29 3b | 20 2f 2f 20 70 61 72 73 |parse();| // pars| |00003e90| 65 20 77 69 6c 6c 20 61 | 73 79 6e 63 68 72 6f 6e |e will a|synchron| |00003ea0| 6f 75 73 6c 79 20 63 61 | 6c 6c 20 74 68 65 20 64 |ously ca|ll the d| |00003eb0| 6f 77 6e 6c 6f 61 64 20 | 63 61 6c 6c 62 61 63 6b |ownload |callback| |00003ec0| 20 77 68 65 6e 20 69 74 | 20 69 73 20 64 6f 6e 65 | when it| is done| |00003ed0| 0a 20 20 7d 2c 20 0a 20 | 20 0a 20 20 6f 6e 50 72 |. }, . | . onPr| |00003ee0| 6f 67 72 65 73 73 3a 20 | 66 75 6e 63 74 69 6f 6e |ogress: |function| |00003ef0| 28 61 45 76 65 6e 74 29 | 20 0a 20 20 7b 0a 20 20 |(aEvent)| . {. | |00003f00| 20 20 76 61 72 20 72 65 | 71 75 65 73 74 20 3d 20 | var re|quest = | |00003f10| 61 45 76 65 6e 74 2e 74 | 61 72 67 65 74 3b 0a 20 |aEvent.t|arget;. | |00003f20| 20 20 20 76 61 72 20 75 | 72 6c 20 3d 20 72 65 71 | var u|rl = req| |00003f30| 75 65 73 74 2e 63 68 61 | 6e 6e 65 6c 2e 6f 72 69 |uest.cha|nnel.ori| |00003f40| 67 69 6e 61 6c 55 52 49 | 2e 73 70 65 63 3b 0a 20 |ginalURI|.spec;. | |00003f50| 20 20 20 76 61 72 20 66 | 65 65 64 20 3d 20 46 65 | var f|eed = Fe| |00003f60| 65 64 43 61 63 68 65 2e | 67 65 74 46 65 65 64 28 |edCache.|getFeed(| |00003f70| 75 72 6c 29 3b 0a 0a 20 | 20 20 20 69 66 20 28 66 |url);.. | if (f| |00003f80| 65 65 64 2e 64 6f 77 6e | 6c 6f 61 64 43 61 6c 6c |eed.down|loadCall| |00003f90| 62 61 63 6b 29 0a 20 20 | 20 20 20 20 66 65 65 64 |back). | feed| |00003fa0| 2e 64 6f 77 6e 6c 6f 61 | 64 43 61 6c 6c 62 61 63 |.downloa|dCallbac| |00003fb0| 6b 2e 6f 6e 50 72 6f 67 | 72 65 73 73 28 66 65 65 |k.onProg|ress(fee| |00003fc0| 64 2c 20 61 45 76 65 6e | 74 2e 70 6f 73 69 74 69 |d, aEven|t.positi| |00003fd0| 6f 6e 2c 20 61 45 76 65 | 6e 74 2e 74 6f 74 61 6c |on, aEve|nt.total| |00003fe0| 53 69 7a 65 29 3b 0a 20 | 20 7d 2c 0a 0a 20 20 6f |Size);. | },.. o| |00003ff0| 6e 44 6f 77 6e 6c 6f 61 | 64 45 72 72 6f 72 3a 20 |nDownloa|dError: | |00004000| 66 75 6e 63 74 69 6f 6e | 28 61 45 76 65 6e 74 29 |function|(aEvent)| |00004010| 20 0a 20 20 7b 0a 20 20 | 20 20 76 61 72 20 72 65 | . {. | var re| |00004020| 71 75 65 73 74 20 3d 20 | 61 45 76 65 6e 74 2e 74 |quest = |aEvent.t| |00004030| 61 72 67 65 74 3b 0a 20 | 20 20 20 76 61 72 20 75 |arget;. | var u| |00004040| 72 6c 20 3d 20 72 65 71 | 75 65 73 74 2e 63 68 61 |rl = req|uest.cha| |00004050| 6e 6e 65 6c 2e 6f 72 69 | 67 69 6e 61 6c 55 52 49 |nnel.ori|ginalURI| |00004060| 2e 73 70 65 63 3b 0a 20 | 20 20 20 76 61 72 20 66 |.spec;. | var f| |00004070| 65 65 64 20 3d 20 46 65 | 65 64 43 61 63 68 65 2e |eed = Fe|edCache.| |00004080| 67 65 74 46 65 65 64 28 | 75 72 6c 29 3b 0a 20 20 |getFeed(|url);. | |00004090| 20 20 69 66 20 28 66 65 | 65 64 2e 64 6f 77 6e 6c | if (fe|ed.downl| |000040a0| 6f 61 64 43 61 6c 6c 62 | 61 63 6b 29 20 0a 20 20 |oadCallb|ack) . | |000040b0| 20 20 7b 0a 20 20 20 20 | 20 20 2f 2f 20 69 66 20 | {. | // if | |000040c0| 74 68 65 20 68 74 74 70 | 20 73 74 61 74 75 73 20 |the http| status | |000040d0| 63 6f 64 65 20 69 73 20 | 61 20 33 30 34 2c 20 74 |code is |a 304, t| |000040e0| 68 65 6e 20 74 68 65 20 | 66 65 65 64 20 68 61 73 |hen the |feed has| |000040f0| 20 6e 6f 74 20 62 65 65 | 6e 20 6d 6f 64 69 66 69 | not bee|n modifi| |00004100| 65 64 20 73 69 6e 63 65 | 20 77 65 20 6c 61 73 74 |ed since| we last| |00004110| 20 64 6f 77 6e 6c 6f 61 | 64 65 64 20 69 74 2e 0a | downloa|ded it..| |00004120| 20 20 20 20 20 20 76 61 | 72 20 65 72 72 6f 72 20 | va|r error | |00004130| 3d 20 6b 4e 65 77 73 42 | 6c 6f 67 52 65 71 75 65 |= kNewsB|logReque| |00004140| 73 74 46 61 69 6c 75 72 | 65 3b 0a 20 20 20 20 20 |stFailur|e;. | |00004150| 20 74 72 79 0a 20 20 20 | 20 20 20 7b 0a 20 20 20 | try. | {. | |00004160| 20 20 20 20 20 69 66 20 | 28 72 65 71 75 65 73 74 | if |(request| |00004170| 2e 73 74 61 74 75 73 20 | 3d 3d 20 33 30 34 29 0a |.status |== 304).| |00004180| 20 20 20 20 20 20 20 20 | 20 20 65 72 72 6f 72 20 | | error | |00004190| 3d 20 6b 4e 65 77 73 42 | 6c 6f 67 4e 6f 4e 65 77 |= kNewsB|logNoNew| |000041a0| 49 74 65 6d 73 3b 0a 20 | 20 20 20 20 20 7d 20 63 |Items;. | } c| |000041b0| 61 74 63 68 20 28 65 78 | 29 20 7b 7d 0a 20 20 20 |atch (ex|) {}. | |000041c0| 20 20 20 66 65 65 64 2e | 64 6f 77 6e 6c 6f 61 64 | feed.|download| |000041d0| 43 61 6c 6c 62 61 63 6b | 2e 64 6f 77 6e 6c 6f 61 |Callback|.downloa| |000041e0| 64 65 64 28 66 65 65 64 | 2c 20 65 72 72 6f 72 29 |ded(feed|, error)| |000041f0| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 0a 20 20 20 |;. }.| . | |00004200| 20 46 65 65 64 43 61 63 | 68 65 2e 72 65 6d 6f 76 | FeedCac|he.remov| |00004210| 65 46 65 65 64 28 75 72 | 6c 29 3b 0a 20 20 7d 2c |eFeed(ur|l);. },| |00004220| 0a 0a 20 20 6f 6e 50 61 | 72 73 65 45 72 72 6f 72 |.. onPa|rseError| |00004230| 3a 20 66 75 6e 63 74 69 | 6f 6e 28 61 46 65 65 64 |: functi|on(aFeed| |00004240| 29 20 0a 20 20 7b 0a 20 | 20 20 20 69 66 20 28 61 |) . {. | if (a| |00004250| 46 65 65 64 20 26 26 20 | 61 46 65 65 64 2e 64 6f |Feed && |aFeed.do| |00004260| 77 6e 6c 6f 61 64 43 61 | 6c 6c 62 61 63 6b 29 0a |wnloadCa|llback).| |00004270| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 69 66 20 28 | {. | if (| |00004280| 61 46 65 65 64 2e 64 6f | 77 6e 6c 6f 61 64 43 61 |aFeed.do|wnloadCa| |00004290| 6c 6c 62 61 63 6b 29 0a | 20 20 20 20 20 20 20 20 |llback).| | |000042a0| 61 46 65 65 64 2e 64 6f | 77 6e 6c 6f 61 64 43 61 |aFeed.do|wnloadCa| |000042b0| 6c 6c 62 61 63 6b 2e 64 | 6f 77 6e 6c 6f 61 64 65 |llback.d|ownloade| |000042c0| 64 28 61 46 65 65 64 2c | 20 61 46 65 65 64 2e 72 |d(aFeed,| aFeed.r| |000042d0| 65 71 75 65 73 74 20 26 | 26 20 61 46 65 65 64 2e |equest &|& aFeed.| |000042e0| 72 65 71 75 65 73 74 2e | 73 74 61 74 75 73 20 3d |request.|status =| |000042f0| 3d 20 33 30 34 20 3f 20 | 6b 4e 65 77 73 42 6c 6f |= 304 ? |kNewsBlo| |00004300| 67 4e 6f 4e 65 77 49 74 | 65 6d 73 20 3a 20 6b 4e |gNoNewIt|ems : kN| |00004310| 65 77 73 42 6c 6f 67 49 | 6e 76 61 6c 69 64 46 65 |ewsBlogI|nvalidFe| |00004320| 65 64 29 3b 0a 20 20 20 | 20 20 20 46 65 65 64 43 |ed);. | FeedC| |00004330| 61 63 68 65 2e 72 65 6d | 6f 76 65 46 65 65 64 28 |ache.rem|oveFeed(| |00004340| 61 46 65 65 64 2e 75 72 | 6c 29 3b 0a 20 20 20 20 |aFeed.ur|l);. | |00004350| 7d 0a 20 20 7d 2c 0a 0a | 20 20 67 65 74 20 75 72 |}. },..| get ur| |00004360| 6c 28 29 0a 20 20 7b 0a | 20 20 20 20 76 61 72 20 |l(). {.| var | |00004370| 64 73 20 3d 20 67 65 74 | 53 75 62 73 63 72 69 70 |ds = get|Subscrip| |00004380| 74 69 6f 6e 73 44 53 28 | 74 68 69 73 2e 73 65 72 |tionsDS(|this.ser| |00004390| 76 65 72 29 3b 0a 20 20 | 20 20 76 61 72 20 75 72 |ver);. | var ur| |000043a0| 6c 20 3d 20 64 73 2e 47 | 65 74 54 61 72 67 65 74 |l = ds.G|etTarget| |000043b0| 28 74 68 69 73 2e 72 65 | 73 6f 75 72 63 65 2c 20 |(this.re|source, | |000043c0| 44 43 5f 49 44 45 4e 54 | 49 46 49 45 52 2c 20 74 |DC_IDENT|IFIER, t| |000043d0| 72 75 65 29 3b 0a 20 20 | 20 20 69 66 20 28 75 72 |rue);. | if (ur| |000043e0| 6c 29 0a 20 20 20 20 20 | 20 75 72 6c 20 3d 20 75 |l). | url = u| |000043f0| 72 6c 2e 51 75 65 72 79 | 49 6e 74 65 72 66 61 63 |rl.Query|Interfac| |00004400| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int| |00004410| 65 72 66 61 63 65 73 2e | 6e 73 49 52 44 46 4c 69 |erfaces.|nsIRDFLi| |00004420| 74 65 72 61 6c 29 2e 56 | 61 6c 75 65 3b 0a 20 20 |teral).V|alue;. | |00004430| 20 20 65 6c 73 65 0a 20 | 20 20 20 20 20 75 72 6c | else. | url| |00004440| 20 3d 20 74 68 69 73 2e | 72 65 73 6f 75 72 63 65 | = this.|resource| |00004450| 2e 56 61 6c 75 65 3b 0a | 20 20 20 20 72 65 74 75 |.Value;.| retu| |00004460| 72 6e 20 75 72 6c 3b 0a | 20 20 7d 2c 0a 0a 20 20 |rn url;.| },.. | |00004470| 67 65 74 20 74 69 74 6c | 65 28 29 0a 20 20 7b 0a |get titl|e(). {.| |00004480| 20 20 20 20 76 61 72 20 | 64 73 20 3d 20 67 65 74 | var |ds = get| |00004490| 53 75 62 73 63 72 69 70 | 74 69 6f 6e 73 44 53 28 |Subscrip|tionsDS(| |000044a0| 74 68 69 73 2e 73 65 72 | 76 65 72 29 3b 0a 20 20 |this.ser|ver);. | |000044b0| 20 20 76 61 72 20 74 69 | 74 6c 65 20 3d 20 64 73 | var ti|tle = ds| |000044c0| 2e 47 65 74 54 61 72 67 | 65 74 28 74 68 69 73 2e |.GetTarg|et(this.| |000044d0| 72 65 73 6f 75 72 63 65 | 2c 20 44 43 5f 54 49 54 |resource|, DC_TIT| |000044e0| 4c 45 2c 20 74 72 75 65 | 29 3b 0a 20 20 20 20 69 |LE, true|);. i| |000044f0| 66 20 28 74 69 74 6c 65 | 29 0a 20 20 20 20 20 20 |f (title|). | |00004500| 74 69 74 6c 65 20 3d 20 | 74 69 74 6c 65 2e 51 75 |title = |title.Qu| |00004510| 65 72 79 49 6e 74 65 72 | 66 61 63 65 28 43 6f 6d |eryInter|face(Com| |00004520| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac| |00004530| 65 73 2e 6e 73 49 52 44 | 46 4c 69 74 65 72 61 6c |es.nsIRD|FLiteral| |00004540| 29 2e 56 61 6c 75 65 3b | 0a 20 20 20 20 72 65 74 |).Value;|. ret| |00004550| 75 72 6e 20 74 69 74 6c | 65 3b 0a 20 20 7d 2c 0a |urn titl|e;. },.| |00004560| 0a 20 20 73 65 74 20 74 | 69 74 6c 65 20 28 61 4e |. set t|itle (aN| |00004570| 65 77 54 69 74 6c 65 29 | 20 0a 20 20 7b 0a 20 20 |ewTitle)| . {. | |00004580| 20 20 76 61 72 20 64 73 | 20 3d 20 67 65 74 53 75 | var ds| = getSu| |00004590| 62 73 63 72 69 70 74 69 | 6f 6e 73 44 53 28 74 68 |bscripti|onsDS(th| |000045a0| 69 73 2e 73 65 72 76 65 | 72 29 3b 0a 20 20 20 20 |is.serve|r);. | |000045b0| 61 4e 65 77 54 69 74 6c | 65 20 3d 20 72 64 66 2e |aNewTitl|e = rdf.| |000045c0| 47 65 74 4c 69 74 65 72 | 61 6c 28 61 4e 65 77 54 |GetLiter|al(aNewT| |000045d0| 69 74 6c 65 29 3b 0a 20 | 20 20 20 76 61 72 20 6f |itle);. | var o| |000045e0| 6c 64 5f 74 69 74 6c 65 | 20 3d 20 64 73 2e 47 65 |ld_title| = ds.Ge| |000045f0| 74 54 61 72 67 65 74 28 | 74 68 69 73 2e 72 65 73 |tTarget(|this.res| |00004600| 6f 75 72 63 65 2c 20 44 | 43 5f 54 49 54 4c 45 2c |ource, D|C_TITLE,| |00004610| 20 74 72 75 65 29 3b 0a | 20 20 20 20 69 66 20 28 | true);.| if (| |00004620| 6f 6c 64 5f 74 69 74 6c | 65 29 0a 20 20 20 20 20 |old_titl|e). | |00004630| 20 20 20 64 73 2e 43 68 | 61 6e 67 65 28 74 68 69 | ds.Ch|ange(thi| |00004640| 73 2e 72 65 73 6f 75 72 | 63 65 2c 20 44 43 5f 54 |s.resour|ce, DC_T| |00004650| 49 54 4c 45 2c 20 6f 6c | 64 5f 74 69 74 6c 65 2c |ITLE, ol|d_title,| |00004660| 20 61 4e 65 77 54 69 74 | 6c 65 29 3b 0a 20 20 20 | aNewTit|le);. | |00004670| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 64 73 | else. | ds| |00004680| 2e 41 73 73 65 72 74 28 | 74 68 69 73 2e 72 65 73 |.Assert(|this.res| |00004690| 6f 75 72 63 65 2c 20 44 | 43 5f 54 49 54 4c 45 2c |ource, D|C_TITLE,| |000046a0| 20 61 4e 65 77 54 69 74 | 6c 65 2c 20 74 72 75 65 | aNewTit|le, true| |000046b0| 29 3b 0a 20 20 7d 2c 0a | 0a 20 20 67 65 74 20 6c |);. },.|. get l| |000046c0| 61 73 74 4d 6f 64 69 66 | 69 65 64 28 29 0a 20 20 |astModif|ied(). | |000046d0| 7b 0a 20 20 20 20 76 61 | 72 20 64 73 20 3d 20 67 |{. va|r ds = g| |000046e0| 65 74 53 75 62 73 63 72 | 69 70 74 69 6f 6e 73 44 |etSubscr|iptionsD| |000046f0| 53 28 74 68 69 73 2e 73 | 65 72 76 65 72 29 3b 0a |S(this.s|erver);.| |00004700| 20 20 20 20 76 61 72 20 | 6c 61 73 74 4d 6f 64 69 | var |lastModi| |00004710| 66 69 65 64 20 3d 20 64 | 73 2e 47 65 74 54 61 72 |fied = d|s.GetTar| |00004720| 67 65 74 28 74 68 69 73 | 2e 72 65 73 6f 75 72 63 |get(this|.resourc| |00004730| 65 2c 20 44 43 5f 4c 41 | 53 54 4d 4f 44 49 46 49 |e, DC_LA|STMODIFI| |00004740| 45 44 2c 20 74 72 75 65 | 29 3b 0a 20 20 20 20 69 |ED, true|);. i| |00004750| 66 20 28 6c 61 73 74 4d | 6f 64 69 66 69 65 64 29 |f (lastM|odified)| |00004760| 0a 20 20 20 20 20 20 6c | 61 73 74 4d 6f 64 69 66 |. l|astModif| |00004770| 69 65 64 20 3d 20 6c 61 | 73 74 4d 6f 64 69 66 69 |ied = la|stModifi| |00004780| 65 64 2e 51 75 65 72 79 | 49 6e 74 65 72 66 61 63 |ed.Query|Interfac| |00004790| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int| |000047a0| 65 72 66 61 63 65 73 2e | 6e 73 49 52 44 46 4c 69 |erfaces.|nsIRDFLi| |000047b0| 74 65 72 61 6c 29 2e 56 | 61 6c 75 65 3b 0a 20 20 |teral).V|alue;. | |000047c0| 20 20 72 65 74 75 72 6e | 20 6c 61 73 74 4d 6f 64 | return| lastMod| |000047d0| 69 66 69 65 64 3b 0a 20 | 20 7d 2c 0a 0a 20 20 73 |ified;. | },.. s| |000047e0| 65 74 20 6c 61 73 74 4d | 6f 64 69 66 69 65 64 28 |et lastM|odified(| |000047f0| 61 4c 61 73 74 4d 6f 64 | 69 66 69 65 64 29 0a 20 |aLastMod|ified). | |00004800| 20 7b 0a 20 20 20 20 76 | 61 72 20 64 73 20 3d 20 | {. v|ar ds = | |00004810| 67 65 74 53 75 62 73 63 | 72 69 70 74 69 6f 6e 73 |getSubsc|riptions| |00004820| 44 53 28 74 68 69 73 2e | 73 65 72 76 65 72 29 3b |DS(this.|server);| |00004830| 0a 20 20 20 20 61 4c 61 | 73 74 4d 6f 64 69 66 69 |. aLa|stModifi| |00004840| 65 64 20 3d 20 72 64 66 | 2e 47 65 74 4c 69 74 65 |ed = rdf|.GetLite| |00004850| 72 61 6c 28 61 4c 61 73 | 74 4d 6f 64 69 66 69 65 |ral(aLas|tModifie| |00004860| 64 29 3b 0a 20 20 20 20 | 76 61 72 20 6f 6c 64 5f |d);. |var old_| |00004870| 6c 61 73 74 6d 6f 64 69 | 66 69 65 64 20 3d 20 64 |lastmodi|fied = d| |00004880| 73 2e 47 65 74 54 61 72 | 67 65 74 28 74 68 69 73 |s.GetTar|get(this| |00004890| 2e 72 65 73 6f 75 72 63 | 65 2c 20 44 43 5f 4c 41 |.resourc|e, DC_LA| |000048a0| 53 54 4d 4f 44 49 46 49 | 45 44 2c 20 74 72 75 65 |STMODIFI|ED, true| |000048b0| 29 3b 0a 20 20 20 20 69 | 66 20 28 6f 6c 64 5f 6c |);. i|f (old_l| |000048c0| 61 73 74 6d 6f 64 69 66 | 69 65 64 29 0a 20 20 20 |astmodif|ied). | |000048d0| 20 20 20 20 20 64 73 2e | 43 68 61 6e 67 65 28 74 | ds.|Change(t| |000048e0| 68 69 73 2e 72 65 73 6f | 75 72 63 65 2c 20 44 43 |his.reso|urce, DC| |000048f0| 5f 4c 41 53 54 4d 4f 44 | 49 46 49 45 44 2c 20 6f |_LASTMOD|IFIED, o| |00004900| 6c 64 5f 6c 61 73 74 6d | 6f 64 69 66 69 65 64 2c |ld_lastm|odified,| |00004910| 20 61 4c 61 73 74 4d 6f | 64 69 66 69 65 64 29 3b | aLastMo|dified);| |00004920| 0a 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 |. els|e. | |00004930| 20 20 64 73 2e 41 73 73 | 65 72 74 28 74 68 69 73 | ds.Ass|ert(this| |00004940| 2e 72 65 73 6f 75 72 63 | 65 2c 20 44 43 5f 4c 41 |.resourc|e, DC_LA| |00004950| 53 54 4d 4f 44 49 46 49 | 45 44 2c 20 61 4c 61 73 |STMODIFI|ED, aLas| |00004960| 74 4d 6f 64 69 66 69 65 | 64 2c 20 74 72 75 65 29 |tModifie|d, true)| |00004970| 3b 20 20 0a 0a 20 20 20 | 20 2f 2f 20 64 6f 20 77 |; .. | // do w| |00004980| 65 20 6e 65 65 64 20 74 | 6f 20 66 6c 75 73 68 20 |e need t|o flush | |00004990| 65 76 65 72 79 20 74 69 | 6d 65 20 74 68 69 73 20 |every ti|me this | |000049a0| 70 72 6f 70 65 72 74 79 | 20 63 68 61 6e 67 65 73 |property| changes| |000049b0| 3f 20 0a 20 20 20 20 64 | 73 20 3d 20 64 73 2e 51 |? . d|s = ds.Q| |000049c0| 75 65 72 79 49 6e 74 65 | 72 66 61 63 65 28 43 6f |ueryInte|rface(Co| |000049d0| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa| |000049e0| 63 65 73 2e 6e 73 49 52 | 44 46 52 65 6d 6f 74 65 |ces.nsIR|DFRemote| |000049f0| 44 61 74 61 53 6f 75 72 | 63 65 29 3b 20 20 20 20 |DataSour|ce); | |00004a00| 0a 20 20 20 20 64 73 2e | 46 6c 75 73 68 28 29 3b |. ds.|Flush();| |00004a10| 20 20 0a 20 20 7d 2c 0a | 0a 20 20 67 65 74 20 71 | . },.|. get q| |00004a20| 75 69 63 6b 4d 6f 64 65 | 20 28 29 0a 20 20 7b 0a |uickMode| (). {.| |00004a30| 20 20 20 20 76 61 72 20 | 64 73 20 3d 20 67 65 74 | var |ds = get| |00004a40| 53 75 62 73 63 72 69 70 | 74 69 6f 6e 73 44 53 28 |Subscrip|tionsDS(| |00004a50| 74 68 69 73 2e 73 65 72 | 76 65 72 29 3b 0a 20 20 |this.ser|ver);. | |00004a60| 20 20 76 61 72 20 71 75 | 69 63 6b 4d 6f 64 65 20 | var qu|ickMode | |00004a70| 3d 20 64 73 2e 47 65 74 | 54 61 72 67 65 74 28 74 |= ds.Get|Target(t| |00004a80| 68 69 73 2e 72 65 73 6f | 75 72 63 65 2c 20 46 5a |his.reso|urce, FZ| |00004a90| 5f 51 55 49 43 4b 4d 4f | 44 45 2c 20 74 72 75 65 |_QUICKMO|DE, true| |00004aa0| 29 3b 0a 20 20 20 20 69 | 66 20 28 71 75 69 63 6b |);. i|f (quick| |00004ab0| 4d 6f 64 65 29 20 0a 20 | 20 20 20 7b 0a 20 20 20 |Mode) . | {. | |00004ac0| 20 20 20 71 75 69 63 6b | 4d 6f 64 65 20 3d 20 71 | quick|Mode = q| |00004ad0| 75 69 63 6b 4d 6f 64 65 | 2e 51 75 65 72 79 49 6e |uickMode|.QueryIn| |00004ae0| 74 65 72 66 61 63 65 28 | 43 6f 6d 70 6f 6e 65 6e |terface(|Componen| |00004af0| 74 73 2e 69 6e 74 65 72 | 66 61 63 65 73 2e 6e 73 |ts.inter|faces.ns| |00004b00| 49 52 44 46 4c 69 74 65 | 72 61 6c 29 3b 0a 20 20 |IRDFLite|ral);. | |00004b10| 20 20 20 20 71 75 69 63 | 6b 4d 6f 64 65 20 3d 20 | quic|kMode = | |00004b20| 71 75 69 63 6b 4d 6f 64 | 65 2e 56 61 6c 75 65 3b |quickMod|e.Value;| |00004b30| 0a 20 20 20 20 20 20 71 | 75 69 63 6b 4d 6f 64 65 |. q|uickMode| |00004b40| 20 3d 20 65 76 61 6c 28 | 71 75 69 63 6b 4d 6f 64 | = eval(|quickMod| |00004b50| 65 29 3b 0a 20 20 20 20 | 7d 20 20 20 20 0a 20 20 |e);. |} . | |00004b60| 20 20 72 65 74 75 72 6e | 20 71 75 69 63 6b 4d 6f | return| quickMo| |00004b70| 64 65 3b 0a 20 20 7d 2c | 0a 0a 20 20 73 65 74 20 |de;. },|.. set | |00004b80| 71 75 69 63 6b 4d 6f 64 | 65 20 28 61 4e 65 77 51 |quickMod|e (aNewQ| |00004b90| 75 69 63 6b 4d 6f 64 65 | 29 20 0a 20 20 7b 0a 20 |uickMode|) . {. | |00004ba0| 20 20 20 76 61 72 20 64 | 73 20 3d 20 67 65 74 53 | var d|s = getS| |00004bb0| 75 62 73 63 72 69 70 74 | 69 6f 6e 73 44 53 28 74 |ubscript|ionsDS(t| |00004bc0| 68 69 73 2e 73 65 72 76 | 65 72 29 3b 0a 20 20 20 |his.serv|er);. | |00004bd0| 20 61 4e 65 77 51 75 69 | 63 6b 4d 6f 64 65 20 3d | aNewQui|ckMode =| |00004be0| 20 72 64 66 2e 47 65 74 | 4c 69 74 65 72 61 6c 28 | rdf.Get|Literal(| |00004bf0| 61 4e 65 77 51 75 69 63 | 6b 4d 6f 64 65 29 3b 0a |aNewQuic|kMode);.| |00004c00| 20 20 20 20 76 61 72 20 | 6f 6c 64 5f 71 75 69 63 | var |old_quic| |00004c10| 6b 4d 6f 64 65 20 3d 20 | 64 73 2e 47 65 74 54 61 |kMode = |ds.GetTa| |00004c20| 72 67 65 74 28 74 68 69 | 73 2e 72 65 73 6f 75 72 |rget(thi|s.resour| |00004c30| 63 65 2c 20 46 5a 5f 51 | 55 49 43 4b 4d 4f 44 45 |ce, FZ_Q|UICKMODE| |00004c40| 2c 20 74 72 75 65 29 3b | 0a 20 20 20 20 69 66 20 |, true);|. if | |00004c50| 28 6f 6c 64 5f 71 75 69 | 63 6b 4d 6f 64 65 29 0a |(old_qui|ckMode).| |00004c60| 20 20 20 20 20 20 64 73 | 2e 43 68 61 6e 67 65 28 | ds|.Change(| |00004c70| 74 68 69 73 2e 72 65 73 | 6f 75 72 63 65 2c 20 46 |this.res|ource, F| |00004c80| 5a 5f 51 55 49 43 4b 4d | 4f 44 45 2c 20 6f 6c 64 |Z_QUICKM|ODE, old| |00004c90| 5f 71 75 69 63 6b 4d 6f | 64 65 2c 20 61 4e 65 77 |_quickMo|de, aNew| |00004ca0| 51 75 69 63 6b 4d 6f 64 | 65 29 3b 0a 20 20 20 20 |QuickMod|e);. | |00004cb0| 65 6c 73 65 0a 20 20 20 | 20 20 20 64 73 2e 41 73 |else. | ds.As| |00004cc0| 73 65 72 74 28 74 68 69 | 73 2e 72 65 73 6f 75 72 |sert(thi|s.resour| |00004cd0| 63 65 2c 20 46 5a 5f 51 | 55 49 43 4b 4d 4f 44 45 |ce, FZ_Q|UICKMODE| |00004ce0| 2c 20 61 4e 65 77 51 75 | 69 63 6b 4d 6f 64 65 2c |, aNewQu|ickMode,| |00004cf0| 20 74 72 75 65 29 3b 0a | 20 20 7d 2c 0a 0a 20 20 | true);.| },.. | |00004d00| 67 65 74 20 6c 69 6e 6b | 20 28 29 0a 20 20 7b 0a |get link| (). {.| |00004d10| 20 20 20 20 76 61 72 20 | 64 73 20 3d 20 67 65 74 | var |ds = get| |00004d20| 53 75 62 73 63 72 69 70 | 74 69 6f 6e 73 44 53 28 |Subscrip|tionsDS(| |00004d30| 74 68 69 73 2e 73 65 72 | 76 65 72 29 3b 0a 20 20 |this.ser|ver);. | |00004d40| 20 20 76 61 72 20 6c 69 | 6e 6b 20 3d 20 64 73 2e | var li|nk = ds.| |00004d50| 47 65 74 54 61 72 67 65 | 74 28 74 68 69 73 2e 72 |GetTarge|t(this.r| |00004d60| 65 73 6f 75 72 63 65 2c | 20 52 53 53 5f 4c 49 4e |esource,| RSS_LIN| |00004d70| 4b 2c 20 74 72 75 65 29 | 3b 0a 20 20 20 20 69 66 |K, true)|;. if| |00004d80| 28 6c 69 6e 6b 29 0a 20 | 20 20 20 20 20 6c 69 6e |(link). | lin| |00004d90| 6b 20 3d 20 6c 69 6e 6b | 2e 51 75 65 72 79 49 6e |k = link|.QueryIn| |00004da0| 74 65 72 66 61 63 65 28 | 43 6f 6d 70 6f 6e 65 6e |terface(|Componen| |00004db0| 74 73 2e 69 6e 74 65 72 | 66 61 63 65 73 2e 6e 73 |ts.inter|faces.ns| |00004dc0| 49 52 44 46 4c 69 74 65 | 72 61 6c 29 2e 56 61 6c |IRDFLite|ral).Val| |00004dd0| 75 65 3b 0a 20 20 20 20 | 72 65 74 75 72 6e 20 6c |ue;. |return l| |00004de0| 69 6e 6b 3b 0a 20 20 7d | 2c 0a 0a 20 20 73 65 74 |ink;. }|,.. set| |00004df0| 20 6c 69 6e 6b 20 28 61 | 4e 65 77 4c 69 6e 6b 29 | link (a|NewLink)| |00004e00| 0a 20 20 7b 0a 20 20 20 | 20 76 61 72 20 64 73 20 |. {. | var ds | |00004e10| 3d 20 67 65 74 53 75 62 | 73 63 72 69 70 74 69 6f |= getSub|scriptio| |00004e20| 6e 73 44 53 28 74 68 69 | 73 2e 73 65 72 76 65 72 |nsDS(thi|s.server| |00004e30| 29 3b 0a 20 20 20 20 61 | 4e 65 77 4c 69 6e 6b 20 |);. a|NewLink | |00004e40| 3d 20 72 64 66 2e 47 65 | 74 4c 69 74 65 72 61 6c |= rdf.Ge|tLiteral| |00004e50| 28 61 4e 65 77 4c 69 6e | 6b 29 3b 0a 20 20 20 20 |(aNewLin|k);. | |00004e60| 76 61 72 20 6f 6c 64 5f | 6c 69 6e 6b 20 3d 20 64 |var old_|link = d| |00004e70| 73 2e 47 65 74 54 61 72 | 67 65 74 28 74 68 69 73 |s.GetTar|get(this| |00004e80| 2e 72 65 73 6f 75 72 63 | 65 2c 20 52 53 53 5f 4c |.resourc|e, RSS_L| |00004e90| 49 4e 4b 2c 20 74 72 75 | 65 29 3b 0a 20 20 20 20 |INK, tru|e);. | |00004ea0| 69 66 20 28 6f 6c 64 5f | 6c 69 6e 6b 29 0a 20 20 |if (old_|link). | |00004eb0| 20 20 20 20 64 73 2e 43 | 68 61 6e 67 65 28 74 68 | ds.C|hange(th| |00004ec0| 69 73 2e 72 65 73 6f 75 | 72 63 65 2c 20 52 53 53 |is.resou|rce, RSS| |00004ed0| 5f 4c 49 4e 4b 2c 20 6f | 6c 64 5f 6c 69 6e 6b 2c |_LINK, o|ld_link,| |00004ee0| 20 61 4e 65 77 4c 69 6e | 6b 29 3b 0a 20 20 20 20 | aNewLin|k);. | |00004ef0| 65 6c 73 65 0a 20 20 20 | 20 20 20 64 73 2e 41 73 |else. | ds.As| |00004f00| 73 65 72 74 28 74 68 69 | 73 2e 72 65 73 6f 75 72 |sert(thi|s.resour| |00004f10| 63 65 2c 20 52 53 53 5f | 4c 49 4e 4b 2c 20 61 4e |ce, RSS_|LINK, aN| |00004f20| 65 77 4c 69 6e 6b 2c 20 | 74 72 75 65 29 3b 0a 20 |ewLink, |true);. | |00004f30| 20 7d 2c 0a 0a 20 20 70 | 61 72 73 65 3a 20 66 75 | },.. p|arse: fu| |00004f40| 6e 63 74 69 6f 6e 28 29 | 20 0a 20 20 7b 0a 20 20 |nction()| . {. | |00004f50| 20 20 2f 2f 20 46 69 67 | 75 72 65 73 20 6f 75 74 | // Fig|ures out| |00004f60| 20 77 68 61 74 20 64 65 | 73 63 72 69 70 74 69 6f | what de|scriptio| |00004f70| 6e 20 6c 61 6e 67 75 61 | 67 65 20 28 52 53 53 2c |n langua|ge (RSS,| |00004f80| 20 41 74 6f 6d 29 20 61 | 6e 64 20 76 65 72 73 69 | Atom) a|nd versi| |00004f90| 6f 6e 20 74 68 69 73 20 | 66 65 65 64 0a 20 20 20 |on this |feed. | |00004fa0| 20 2f 2f 20 69 73 20 75 | 73 69 6e 67 20 61 6e 64 | // is u|sing and| |00004fb0| 20 63 61 6c 6c 73 20 61 | 20 6c 61 6e 67 75 61 67 | calls a| languag| |00004fc0| 65 2f 76 65 72 73 69 6f | 6e 2d 73 70 65 63 69 66 |e/versio|n-specif| |00004fd0| 69 63 20 66 65 65 64 20 | 70 61 72 73 65 72 2e 0a |ic feed |parser..| |00004fe0| 0a 20 20 20 20 64 65 62 | 75 67 28 22 70 61 72 73 |. deb|ug("pars| |00004ff0| 69 6e 67 20 66 65 65 64 | 20 22 20 2b 20 74 68 69 |ing feed| " + thi| |00005000| 73 2e 75 72 6c 29 3b 0a | 0a 20 20 20 20 69 66 20 |s.url);.|. if | |00005010| 28 21 74 68 69 73 2e 72 | 65 71 75 65 73 74 2e 72 |(!this.r|equest.r| |00005020| 65 73 70 6f 6e 73 65 54 | 65 78 74 29 20 0a 20 20 |esponseT|ext) . | |00005030| 20 20 20 20 72 65 74 75 | 72 6e 20 74 68 69 73 2e | retu|rn this.| |00005040| 6f 6e 50 61 72 73 65 45 | 72 72 6f 72 28 74 68 69 |onParseE|rror(thi| |00005050| 73 29 3b 0a 20 20 20 20 | 20 20 0a 20 20 20 20 2f |s);. | . /| |00005060| 2f 20 63 72 65 61 74 65 | 20 61 20 66 65 65 64 20 |/ create| a feed | |00005070| 70 61 72 73 65 72 20 77 | 68 69 63 68 20 77 69 6c |parser w|hich wil| |00005080| 6c 20 70 61 72 73 65 20 | 74 68 65 20 66 65 65 64 |l parse |the feed| |00005090| 20 66 6f 72 20 75 73 0a | 20 20 20 20 76 61 72 20 | for us.| var | |000050a0| 70 61 72 73 65 72 20 3d | 20 6e 65 77 20 46 65 65 |parser =| new Fee| |000050b0| 64 50 61 72 73 65 72 28 | 29 3b 0a 20 20 20 20 74 |dParser(|);. t| |000050c0| 68 69 73 2e 69 74 65 6d | 73 54 6f 53 74 6f 72 65 |his.item|sToStore| |000050d0| 20 3d 20 70 61 72 73 65 | 72 2e 70 61 72 73 65 46 | = parse|r.parseF| |000050e0| 65 65 64 28 74 68 69 73 | 2c 20 74 68 69 73 2e 72 |eed(this|, this.r| |000050f0| 65 71 75 65 73 74 2e 72 | 65 73 70 6f 6e 73 65 54 |equest.r|esponseT| |00005100| 65 78 74 2c 20 74 68 69 | 73 2e 72 65 71 75 65 73 |ext, thi|s.reques| |00005110| 74 2e 72 65 73 70 6f 6e | 73 65 58 4d 4c 2c 20 74 |t.respon|seXML, t| |00005120| 68 69 73 2e 72 65 71 75 | 65 73 74 2e 63 68 61 6e |his.requ|est.chan| |00005130| 6e 65 6c 2e 55 52 49 29 | 3b 0a 20 20 0a 20 20 20 |nel.URI)|;. . | |00005140| 20 2f 2f 20 73 74 6f 72 | 65 4e 65 78 74 49 74 65 | // stor|eNextIte| |00005150| 6d 20 77 69 6c 6c 20 69 | 74 65 72 61 74 65 20 74 |m will i|terate t| |00005160| 68 72 6f 75 67 68 20 74 | 68 65 20 70 61 72 73 65 |hrough t|he parse| |00005170| 64 20 69 74 65 6d 73 2c | 20 73 74 6f 72 69 6e 67 |d items,| storing| |00005180| 20 65 61 63 68 20 6f 6e | 65 2e 0a 20 20 20 20 74 | each on|e.. t| |00005190| 68 69 73 2e 69 74 65 6d | 73 54 6f 53 74 6f 72 65 |his.item|sToStore| |000051a0| 49 6e 64 65 78 20 3d 20 | 30 3b 0a 20 20 20 20 74 |Index = |0;. t| |000051b0| 68 69 73 2e 73 74 6f 72 | 65 4e 65 78 74 49 74 65 |his.stor|eNextIte| |000051c0| 6d 28 29 3b 0a 20 20 7d | 2c 0a 0a 20 20 69 6e 76 |m();. }|,.. inv| |000051d0| 61 6c 69 64 61 74 65 49 | 74 65 6d 73 3a 20 66 75 |alidateI|tems: fu| |000051e0| 6e 63 74 69 6f 6e 20 28 | 29 20 0a 20 20 7b 0a 20 |nction (|) . {. | |000051f0| 20 20 20 76 61 72 20 64 | 73 20 3d 20 67 65 74 49 | var d|s = getI| |00005200| 74 65 6d 73 44 53 28 74 | 68 69 73 2e 73 65 72 76 |temsDS(t|his.serv| |00005210| 65 72 29 3b 0a 20 20 20 | 20 64 65 62 75 67 28 22 |er);. | debug("| |00005220| 69 6e 76 61 6c 69 64 61 | 74 69 6e 67 20 69 74 65 |invalida|ting ite| |00005230| 6d 73 20 66 6f 72 20 22 | 20 2b 20 74 68 69 73 2e |ms for "| + this.| |00005240| 75 72 6c 29 3b 0a 20 20 | 20 20 76 61 72 20 69 74 |url);. | var it| |00005250| 65 6d 73 20 3d 20 64 73 | 2e 47 65 74 53 6f 75 72 |ems = ds|.GetSour| |00005260| 63 65 73 28 46 5a 5f 46 | 45 45 44 2c 20 74 68 69 |ces(FZ_F|EED, thi| |00005270| 73 2e 72 65 73 6f 75 72 | 63 65 2c 20 74 72 75 65 |s.resour|ce, true| |00005280| 29 3b 0a 20 20 20 20 76 | 61 72 20 69 74 65 6d 3b |);. v|ar item;| |00005290| 0a 20 20 0a 20 20 20 20 | 77 68 69 6c 65 20 28 69 |. . |while (i| |000052a0| 74 65 6d 73 2e 68 61 73 | 4d 6f 72 65 45 6c 65 6d |tems.has|MoreElem| |000052b0| 65 6e 74 73 28 29 29 20 | 0a 20 20 20 20 7b 0a 20 |ents()) |. {. | |000052c0| 20 20 20 20 20 69 74 65 | 6d 20 3d 20 69 74 65 6d | ite|m = item| |000052d0| 73 2e 67 65 74 4e 65 78 | 74 28 29 3b 0a 20 20 20 |s.getNex|t();. | |000052e0| 20 20 20 69 74 65 6d 20 | 3d 20 69 74 65 6d 2e 51 | item |= item.Q| |000052f0| 75 65 72 79 49 6e 74 65 | 72 66 61 63 65 28 43 6f |ueryInte|rface(Co| |00005300| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa| |00005310| 63 65 73 2e 6e 73 49 52 | 44 46 52 65 73 6f 75 72 |ces.nsIR|DFResour| |00005320| 63 65 29 3b 0a 20 20 20 | 20 20 20 64 65 62 75 67 |ce);. | debug| |00005330| 28 22 69 6e 76 61 6c 69 | 64 61 74 69 6e 67 20 22 |("invali|dating "| |00005340| 20 2b 20 69 74 65 6d 2e | 56 61 6c 75 65 29 3b 0a | + item.|Value);.| |00005350| 20 20 20 20 20 20 76 61 | 72 20 76 61 6c 69 64 20 | va|r valid | |00005360| 3d 20 64 73 2e 47 65 74 | 54 61 72 67 65 74 28 69 |= ds.Get|Target(i| |00005370| 74 65 6d 2c 20 46 5a 5f | 56 41 4c 49 44 2c 20 74 |tem, FZ_|VALID, t| |00005380| 72 75 65 29 3b 0a 20 20 | 20 20 20 20 69 66 20 28 |rue);. | if (| |00005390| 76 61 6c 69 64 29 0a 20 | 20 20 20 20 20 20 20 64 |valid). | d| |000053a0| 73 2e 55 6e 61 73 73 65 | 72 74 28 69 74 65 6d 2c |s.Unasse|rt(item,| |000053b0| 20 46 5a 5f 56 41 4c 49 | 44 2c 20 76 61 6c 69 64 | FZ_VALI|D, valid| |000053c0| 2c 20 74 72 75 65 29 3b | 0a 20 20 20 20 7d 0a 20 |, true);|. }. | |000053d0| 20 7d 2c 20 0a 0a 20 20 | 72 65 6d 6f 76 65 49 6e | }, .. |removeIn| |000053e0| 76 61 6c 69 64 49 74 65 | 6d 73 3a 20 66 75 6e 63 |validIte|ms: func| |000053f0| 74 69 6f 6e 28 29 20 0a | 20 20 7b 0a 20 20 20 20 |tion() .| {. | |00005400| 76 61 72 20 64 73 20 3d | 20 67 65 74 49 74 65 6d |var ds =| getItem| |00005410| 73 44 53 28 74 68 69 73 | 2e 73 65 72 76 65 72 29 |sDS(this|.server)| |00005420| 3b 0a 20 20 20 20 64 65 | 62 75 67 28 22 72 65 6d |;. de|bug("rem| |00005430| 6f 76 69 6e 67 20 69 6e | 76 61 6c 69 64 20 69 74 |oving in|valid it| |00005440| 65 6d 73 20 66 6f 72 20 | 22 20 2b 20 74 68 69 73 |ems for |" + this| |00005450| 2e 75 72 6c 29 3b 0a 20 | 20 20 20 76 61 72 20 69 |.url);. | var i| |00005460| 74 65 6d 73 20 3d 20 64 | 73 2e 47 65 74 53 6f 75 |tems = d|s.GetSou| |00005470| 72 63 65 73 28 46 5a 5f | 46 45 45 44 2c 20 74 68 |rces(FZ_|FEED, th| |00005480| 69 73 2e 72 65 73 6f 75 | 72 63 65 2c 20 74 72 75 |is.resou|rce, tru| |00005490| 65 29 3b 0a 20 20 20 20 | 76 61 72 20 69 74 65 6d |e);. |var item| |000054a0| 3b 0a 20 20 20 20 77 68 | 69 6c 65 20 28 69 74 65 |;. wh|ile (ite| |000054b0| 6d 73 2e 68 61 73 4d 6f | 72 65 45 6c 65 6d 65 6e |ms.hasMo|reElemen| |000054c0| 74 73 28 29 29 20 0a 20 | 20 20 20 7b 0a 20 20 20 |ts()) . | {. | |000054d0| 20 20 20 69 74 65 6d 20 | 3d 20 69 74 65 6d 73 2e | item |= items.| |000054e0| 67 65 74 4e 65 78 74 28 | 29 3b 0a 20 20 20 20 20 |getNext(|);. | |000054f0| 20 69 74 65 6d 20 3d 20 | 69 74 65 6d 2e 51 75 65 | item = |item.Que| |00005500| 72 79 49 6e 74 65 72 66 | 61 63 65 28 43 6f 6d 70 |ryInterf|ace(Comp| |00005510| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface| |00005520| 73 2e 6e 73 49 52 44 46 | 52 65 73 6f 75 72 63 65 |s.nsIRDF|Resource| |00005530| 29 3b 0a 20 20 20 20 20 | 20 69 66 20 28 64 73 2e |);. | if (ds.| |00005540| 48 61 73 41 73 73 65 72 | 74 69 6f 6e 28 69 74 65 |HasAsser|tion(ite| |00005550| 6d 2c 20 46 5a 5f 56 41 | 4c 49 44 2c 20 52 44 46 |m, FZ_VA|LID, RDF| |00005560| 5f 4c 49 54 45 52 41 4c | 5f 54 52 55 45 2c 20 74 |_LITERAL|_TRUE, t| |00005570| 72 75 65 29 29 0a 20 20 | 20 20 20 20 20 20 63 6f |rue)). | co| |00005580| 6e 74 69 6e 75 65 3b 0a | 20 20 20 20 20 20 64 65 |ntinue;.| de| |00005590| 62 75 67 28 22 72 65 6d | 6f 76 69 6e 67 20 22 20 |bug("rem|oving " | |000055a0| 2b 20 69 74 65 6d 2e 56 | 61 6c 75 65 29 3b 0a 20 |+ item.V|alue);. | |000055b0| 20 20 20 20 20 64 73 2e | 55 6e 61 73 73 65 72 74 | ds.|Unassert| |000055c0| 28 69 74 65 6d 2c 20 46 | 5a 5f 46 45 45 44 2c 20 |(item, F|Z_FEED, | |000055d0| 74 68 69 73 2e 72 65 73 | 6f 75 72 63 65 2c 20 74 |this.res|ource, t| |000055e0| 72 75 65 29 3b 0a 20 20 | 20 20 20 20 69 66 20 28 |rue);. | if (| |000055f0| 64 73 2e 68 61 73 41 72 | 63 4f 75 74 28 69 74 65 |ds.hasAr|cOut(ite| |00005600| 6d 2c 20 46 5a 5f 46 45 | 45 44 29 29 0a 20 20 20 |m, FZ_FE|ED)). | |00005610| 20 20 20 20 20 64 65 62 | 75 67 28 69 74 65 6d 2e | deb|ug(item.| |00005620| 56 61 6c 75 65 20 2b 20 | 22 20 69 73 20 66 72 6f |Value + |" is fro| |00005630| 6d 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |m more t|han one | |00005640| 66 65 65 64 3b 20 6f 6e | 6c 79 20 74 68 65 20 72 |feed; on|ly the r| |00005650| 65 66 65 72 65 6e 63 65 | 20 74 6f 20 74 68 69 73 |eference| to this| |00005660| 20 66 65 65 64 20 72 65 | 6d 6f 76 65 64 22 29 3b | feed re|moved");| |00005670| 0a 20 20 20 20 20 20 65 | 6c 73 65 0a 20 20 20 20 |. e|lse. | |00005680| 20 20 20 20 72 65 6d 6f | 76 65 41 73 73 65 72 74 | remo|veAssert| |00005690| 69 6f 6e 73 28 64 73 2c | 20 69 74 65 6d 29 3b 0a |ions(ds,| item);.| |000056a0| 20 20 20 20 7d 0a 20 20 | 7d 2c 0a 0a 20 20 63 72 | }. |},.. cr| |000056b0| 65 61 74 65 46 6f 6c 64 | 65 72 3a 20 66 75 6e 63 |eateFold|er: func| |000056c0| 74 69 6f 6e 28 29 0a 20 | 20 7b 20 20 20 0a 20 20 |tion(). | { . | |000056d0| 20 20 69 66 20 28 21 74 | 68 69 73 2e 66 6f 6c 64 | if (!t|his.fold| |000056e0| 65 72 29 20 0a 20 20 20 | 20 20 20 74 68 69 73 2e |er) . | this.| |000056f0| 73 65 72 76 65 72 2e 72 | 6f 6f 74 4d 73 67 46 6f |server.r|ootMsgFo| |00005700| 6c 64 65 72 2e 63 72 65 | 61 74 65 53 75 62 66 6f |lder.cre|ateSubfo| |00005710| 6c 64 65 72 28 74 68 69 | 73 2e 6e 61 6d 65 2c 20 |lder(thi|s.name, | |00005720| 6e 75 6c 6c 20 2f 2a 20 | 73 75 70 70 6f 73 65 64 |null /* |supposed| |00005730| 20 74 6f 20 62 65 20 61 | 20 6d 73 67 20 77 69 6e | to be a| msg win| |00005740| 64 6f 77 20 2a 2f 29 3b | 20 20 20 20 20 20 0a 20 |dow */);| . | |00005750| 20 7d 2c 0a 0a 20 20 2f | 2f 20 67 65 74 73 20 74 | },.. /|/ gets t| |00005760| 68 65 20 6e 65 78 74 20 | 69 74 65 6d 20 66 72 6f |he next |item fro| |00005770| 6d 20 67 49 74 65 6d 73 | 54 6f 53 74 6f 72 65 20 |m gItems|ToStore | |00005780| 61 6e 64 20 66 6f 72 63 | 65 73 20 74 68 61 74 20 |and forc|es that | |00005790| 69 74 65 6d 20 74 6f 20 | 62 65 20 73 74 6f 72 65 |item to |be store| |000057a0| 64 0a 20 20 2f 2f 20 74 | 6f 20 74 68 65 20 66 6f |d. // t|o the fo| |000057b0| 6c 64 65 72 2e 20 49 66 | 20 6d 6f 72 65 20 69 74 |lder. If| more it| |000057c0| 65 6d 73 20 61 72 65 20 | 6c 65 66 74 20 74 6f 20 |ems are |left to | |000057d0| 62 65 20 73 74 6f 72 65 | 64 2c 20 66 69 72 65 73 |be store|d, fires| |000057e0| 20 61 20 74 69 6d 65 72 | 20 66 6f 72 20 74 68 65 | a timer| for the| |000057f0| 20 6e 65 78 74 20 6f 6e | 65 2e 0a 20 20 2f 2f 20 | next on|e.. // | |00005800| 6f 74 68 65 72 77 69 73 | 65 20 69 74 20 74 72 69 |otherwis|e it tri| |00005810| 67 67 65 72 73 20 61 20 | 64 6f 77 6e 6c 6f 61 64 |ggers a |download| |00005820| 20 64 6f 6e 65 20 6e 6f | 74 69 66 69 63 61 74 69 | done no|tificati| |00005830| 6f 6e 20 74 6f 20 74 68 | 65 20 55 49 0a 20 20 73 |on to th|e UI. s| |00005840| 74 6f 72 65 4e 65 78 74 | 49 74 65 6d 3a 20 66 75 |toreNext|Item: fu| |00005850| 6e 63 74 69 6f 6e 28 29 | 0a 20 20 7b 0a 20 20 20 |nction()|. {. | |00005860| 20 69 66 20 28 21 74 68 | 69 73 2e 69 74 65 6d 73 | if (!th|is.items| |00005870| 54 6f 53 74 6f 72 65 20 | 7c 7c 20 20 21 74 68 69 |ToStore ||| !thi| |00005880| 73 2e 69 74 65 6d 73 54 | 6f 53 74 6f 72 65 2e 6c |s.itemsT|oStore.l| |00005890| 65 6e 67 74 68 29 0a 20 | 20 20 20 7b 0a 20 20 20 |ength). | {. | |000058a0| 20 20 20 74 68 69 73 2e | 63 72 65 61 74 65 46 6f | this.|createFo| |000058b0| 6c 64 65 72 28 29 3b 0a | 20 20 20 20 20 20 72 65 |lder();.| re| |000058c0| 74 75 72 6e 20 74 68 69 | 73 2e 63 6c 65 61 6e 75 |turn thi|s.cleanu| |000058d0| 70 50 61 72 73 69 6e 67 | 53 74 61 74 65 28 74 68 |pParsing|State(th| |000058e0| 69 73 29 3b 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 |is);. | }.. | |000058f0| 76 61 72 20 69 74 65 6d | 20 3d 20 74 68 69 73 2e |var item| = this.| |00005900| 69 74 65 6d 73 54 6f 53 | 74 6f 72 65 5b 74 68 69 |itemsToS|tore[thi| |00005910| 73 2e 69 74 65 6d 73 54 | 6f 53 74 6f 72 65 49 6e |s.itemsT|oStoreIn| |00005920| 64 65 78 5d 3b 20 0a 0a | 20 20 20 20 69 74 65 6d |dex]; ..| item| |00005930| 2e 73 74 6f 72 65 28 29 | 3b 0a 20 20 20 20 69 74 |.store()|;. it| |00005940| 65 6d 2e 6d 61 72 6b 56 | 61 6c 69 64 28 29 3b 0a |em.markV|alid();.| |00005950| 0a 20 20 20 20 2f 2f 20 | 69 66 20 74 68 65 20 6c |. // |if the l| |00005960| 69 73 74 65 6e 65 72 20 | 69 73 20 74 72 61 63 6b |istener |is track| |00005970| 69 6e 67 20 70 72 6f 67 | 72 65 73 73 20 66 6f 72 |ing prog|ress for| |00005980| 20 73 74 6f 72 69 6e 67 | 20 65 61 63 68 20 69 74 | storing| each it| |00005990| 65 6d 2c 20 72 65 70 6f | 72 74 20 69 74 20 68 65 |em, repo|rt it he| |000059a0| 72 65 2e 2e 2e 0a 20 20 | 20 20 69 66 20 28 69 74 |re.... | if (it| |000059b0| 65 6d 2e 66 65 65 64 2e | 64 6f 77 6e 6c 6f 61 64 |em.feed.|download| |000059c0| 43 61 6c 6c 62 61 63 6b | 20 26 26 20 69 74 65 6d |Callback| && item| |000059d0| 2e 66 65 65 64 2e 64 6f | 77 6e 6c 6f 61 64 43 61 |.feed.do|wnloadCa| |000059e0| 6c 6c 62 61 63 6b 2e 6f | 6e 46 65 65 64 49 74 65 |llback.o|nFeedIte| |000059f0| 6d 53 74 6f 72 65 64 29 | 0a 20 20 20 20 20 20 69 |mStored)|. i| |00005a00| 74 65 6d 2e 66 65 65 64 | 2e 64 6f 77 6e 6c 6f 61 |tem.feed|.downloa| |00005a10| 64 43 61 6c 6c 62 61 63 | 6b 2e 6f 6e 46 65 65 64 |dCallbac|k.onFeed| |00005a20| 49 74 65 6d 53 74 6f 72 | 65 64 28 69 74 65 6d 2e |ItemStor|ed(item.| |00005a30| 66 65 65 64 2c 20 74 68 | 69 73 2e 69 74 65 6d 73 |feed, th|is.items| |00005a40| 54 6f 53 74 6f 72 65 49 | 6e 64 65 78 2c 20 74 68 |ToStoreI|ndex, th| |00005a50| 69 73 2e 69 74 65 6d 73 | 54 6f 53 74 6f 72 65 2e |is.items|ToStore.| |00005a60| 6c 65 6e 67 74 68 29 3b | 0a 20 0a 20 20 20 20 74 |length);|. . t| |00005a70| 68 69 73 2e 69 74 65 6d | 73 54 6f 53 74 6f 72 65 |his.item|sToStore| |00005a80| 49 6e 64 65 78 2b 2b 0a | 0a 20 20 20 20 2f 2f 20 |Index++.|. // | |00005a90| 65 76 65 6e 74 75 61 6c | 6c 79 20 77 65 27 6c 6c |eventual|ly we'll| |00005aa0| 20 72 65 70 6f 72 74 20 | 69 6e 64 69 76 69 64 75 | report |individu| |00005ab0| 61 6c 20 70 72 6f 67 72 | 65 73 73 20 68 65 72 65 |al progr|ess here| |00005ac0| 2e 2e 2e 2e 0a 0a 20 20 | 20 20 69 66 20 28 74 68 |...... | if (th| |00005ad0| 69 73 2e 69 74 65 6d 73 | 54 6f 53 74 6f 72 65 49 |is.items|ToStoreI| |00005ae0| 6e 64 65 78 20 3c 20 74 | 68 69 73 2e 69 74 65 6d |ndex < t|his.item| |00005af0| 73 54 6f 53 74 6f 72 65 | 2e 6c 65 6e 67 74 68 29 |sToStore|.length)| |00005b00| 0a 20 20 20 20 7b 0a 20 | 20 20 20 20 20 69 66 20 |. {. | if | |00005b10| 28 21 74 68 69 73 2e 73 | 74 6f 72 65 49 74 65 6d |(!this.s|toreItem| |00005b20| 73 54 69 6d 65 72 29 0a | 20 20 20 20 20 20 20 20 |sTimer).| | |00005b30| 74 68 69 73 2e 73 74 6f | 72 65 49 74 65 6d 73 54 |this.sto|reItemsT| |00005b40| 69 6d 65 72 20 3d 20 43 | 6f 6d 70 6f 6e 65 6e 74 |imer = C|omponent| |00005b50| 73 2e 63 6c 61 73 73 65 | 73 5b 22 40 6d 6f 7a 69 |s.classe|s["@mozi| |00005b60| 6c 6c 61 2e 6f 72 67 2f | 74 69 6d 65 72 3b 31 22 |lla.org/|timer;1"| |00005b70| 5d 2e 63 72 65 61 74 65 | 49 6e 73 74 61 6e 63 65 |].create|Instance| |00005b80| 28 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 69 6e 74 65 |(Compone|nts.inte| |00005b90| 72 66 61 63 65 73 2e 6e | 73 49 54 69 6d 65 72 29 |rfaces.n|sITimer)| |00005ba0| 3b 0a 20 20 20 20 20 20 | 74 68 69 73 2e 73 74 6f |;. |this.sto| |00005bb0| 72 65 49 74 65 6d 73 54 | 69 6d 65 72 2e 69 6e 69 |reItemsT|imer.ini| |00005bc0| 74 57 69 74 68 43 61 6c | 6c 62 61 63 6b 28 74 68 |tWithCal|lback(th| |00005bd0| 69 73 2c 20 35 30 2c 20 | 43 6f 6d 70 6f 6e 65 6e |is, 50, |Componen| |00005be0| 74 73 2e 69 6e 74 65 72 | 66 61 63 65 73 2e 6e 73 |ts.inter|faces.ns| |00005bf0| 49 54 69 6d 65 72 2e 54 | 59 50 45 5f 4f 4e 45 5f |ITimer.T|YPE_ONE_| |00005c00| 53 48 4f 54 29 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |SHOT);. | }. | |00005c10| 20 65 6c 73 65 0a 20 20 | 20 20 7b 0a 20 20 20 20 | else. | {. | |00005c20| 20 20 2f 2f 20 77 65 20 | 68 61 76 65 20 6a 75 73 | // we |have jus| |00005c30| 74 20 66 69 6e 69 73 68 | 65 64 20 64 6f 77 6e 6c |t finish|ed downl| |00005c40| 6f 61 64 69 6e 67 20 6f | 6e 65 20 6f 72 20 6d 6f |oading o|ne or mo| |00005c50| 72 65 20 66 65 65 64 20 | 69 74 65 6d 73 20 69 6e |re feed |items in| |00005c60| 74 6f 20 74 68 65 20 64 | 65 73 74 69 6e 61 74 69 |to the d|estinati| |00005c70| 6f 6e 20 66 6f 6c 64 65 | 72 2c 0a 20 20 20 20 20 |on folde|r,. | |00005c80| 20 2f 2f 20 69 66 20 74 | 68 65 20 66 6f 6c 64 65 | // if t|he folde| |00005c90| 72 20 69 73 20 73 74 69 | 6c 6c 20 6c 69 73 74 65 |r is sti|ll liste| |00005ca0| 64 20 61 73 20 68 61 76 | 69 6e 67 20 6e 65 77 20 |d as hav|ing new | |00005cb0| 6d 65 73 73 61 67 65 73 | 20 69 6e 20 69 74 2c 20 |messages| in it, | |00005cc0| 74 68 65 6e 20 77 65 20 | 73 68 6f 75 6c 64 20 73 |then we |should s| |00005cd0| 65 74 20 74 68 65 20 62 | 69 66 66 20 73 74 61 74 |et the b|iff stat| |00005ce0| 65 20 6f 6e 20 74 68 65 | 20 66 6f 6c 64 65 72 0a |e on the| folder.| |00005cf0| 20 20 20 20 20 20 2f 2f | 20 73 6f 20 74 68 65 20 | //| so the | |00005d00| 72 69 67 68 74 20 52 44 | 46 20 55 49 20 63 68 61 |right RD|F UI cha| |00005d10| 6e 67 65 73 20 68 61 70 | 70 65 6e 20 69 6e 20 74 |nges hap|pen in t| |00005d20| 68 65 20 66 6f 6c 64 65 | 72 20 70 61 6e 65 20 74 |he folde|r pane t| |00005d30| 6f 20 69 6e 64 69 63 61 | 74 65 20 6e 65 77 20 6d |o indica|te new m| |00005d40| 61 69 6c 2e 0a 0a 20 20 | 20 20 20 20 69 66 20 28 |ail... | if (| |00005d50| 69 74 65 6d 2e 66 65 65 | 64 2e 66 6f 6c 64 65 72 |item.fee|d.folder| |00005d60| 2e 68 61 73 4e 65 77 4d | 65 73 73 61 67 65 73 29 |.hasNewM|essages)| |00005d70| 0a 20 20 20 20 20 20 20 | 20 69 74 65 6d 2e 66 65 |. | item.fe| |00005d80| 65 64 2e 66 6f 6c 64 65 | 72 2e 62 69 66 66 53 74 |ed.folde|r.biffSt| |00005d90| 61 74 65 20 3d 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |ate = Co|mponents| |00005da0| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 4d |.interfa|ces.nsIM| |00005db0| 73 67 46 6f 6c 64 65 72 | 2e 6e 73 4d 73 67 42 69 |sgFolder|.nsMsgBi| |00005dc0| 66 66 53 74 61 74 65 5f | 4e 65 77 4d 61 69 6c 3b |ffState_|NewMail;| |00005dd0| 0a 20 20 20 20 20 20 74 | 68 69 73 2e 63 6c 65 61 |. t|his.clea| |00005de0| 6e 75 70 50 61 72 73 69 | 6e 67 53 74 61 74 65 28 |nupParsi|ngState(| |00005df0| 69 74 65 6d 2e 66 65 65 | 64 29 3b 20 20 20 0a 20 |item.fee|d); . | |00005e00| 20 20 20 7d 0a 20 20 7d | 2c 0a 0a 20 20 63 6c 65 | }. }|,.. cle| |00005e10| 61 6e 75 70 50 61 72 73 | 69 6e 67 53 74 61 74 65 |anupPars|ingState| |00005e20| 3a 20 66 75 6e 63 74 69 | 6f 6e 28 61 46 65 65 64 |: functi|on(aFeed| |00005e30| 29 20 0a 20 20 7b 0a 20 | 20 20 20 2f 2f 20 6e 6f |) . {. | // no| |00005e40| 77 20 74 68 61 74 20 77 | 65 20 61 72 65 20 64 6f |w that w|e are do| |00005e50| 6e 65 20 70 61 72 73 69 | 6e 67 20 74 68 65 20 66 |ne parsi|ng the f| |00005e60| 65 65 64 2c 20 72 65 6d | 6f 76 65 20 74 68 65 20 |eed, rem|ove the | |00005e70| 66 65 65 64 20 66 72 6f | 6d 20 6f 75 72 20 66 65 |feed fro|m our fe| |00005e80| 65 64 20 63 61 63 68 65 | 0a 20 20 20 20 46 65 65 |ed cache|. Fee| |00005e90| 64 43 61 63 68 65 2e 72 | 65 6d 6f 76 65 46 65 65 |dCache.r|emoveFee| |00005ea0| 64 28 61 46 65 65 64 2e | 75 72 6c 29 3b 0a 20 20 |d(aFeed.|url);. | |00005eb0| 20 20 61 46 65 65 64 2e | 72 65 6d 6f 76 65 49 6e | aFeed.|removeIn| |00005ec0| 76 61 6c 69 64 49 74 65 | 6d 73 28 29 3b 0a 0a 20 |validIte|ms();.. | |00005ed0| 20 20 20 2f 2f 20 6c 65 | 74 27 73 20 62 65 20 73 | // le|t's be s| |00005ee0| 75 72 65 20 74 6f 20 66 | 6c 75 73 68 20 61 6e 79 |ure to f|lush any| |00005ef0| 20 66 65 65 64 20 69 74 | 65 6d 20 63 68 61 6e 67 | feed it|em chang| |00005f00| 65 73 20 62 61 63 6b 20 | 74 6f 20 64 69 73 6b 0a |es back |to disk.| |00005f10| 20 20 20 20 76 61 72 20 | 64 73 20 3d 20 67 65 74 | var |ds = get| |00005f20| 49 74 65 6d 73 44 53 28 | 61 46 65 65 64 2e 73 65 |ItemsDS(|aFeed.se| |00005f30| 72 76 65 72 29 3b 0a 20 | 20 20 20 64 73 2e 51 75 |rver);. | ds.Qu| |00005f40| 65 72 79 49 6e 74 65 72 | 66 61 63 65 28 43 6f 6d |eryInter|face(Com| |00005f50| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac| |00005f60| 65 73 2e 6e 73 49 52 44 | 46 52 65 6d 6f 74 65 44 |es.nsIRD|FRemoteD| |00005f70| 61 74 61 53 6f 75 72 63 | 65 29 2e 46 6c 75 73 68 |ataSourc|e).Flush| |00005f80| 28 29 3b 20 2f 2f 20 66 | 6c 75 73 68 20 61 6e 79 |(); // f|lush any| |00005f90| 20 63 68 61 6e 67 65 73 | 0a 0a 20 20 20 20 69 66 | changes|.. if| |00005fa0| 20 28 61 46 65 65 64 2e | 64 6f 77 6e 6c 6f 61 64 | (aFeed.|download| |00005fb0| 43 61 6c 6c 62 61 63 6b | 29 0a 20 20 20 20 20 20 |Callback|). | |00005fc0| 61 46 65 65 64 2e 64 6f | 77 6e 6c 6f 61 64 43 61 |aFeed.do|wnloadCa| |00005fd0| 6c 6c 62 61 63 6b 2e 64 | 6f 77 6e 6c 6f 61 64 65 |llback.d|ownloade| |00005fe0| 64 28 61 46 65 65 64 2c | 20 6b 4e 65 77 73 42 6c |d(aFeed,| kNewsBl| |00005ff0| 6f 67 53 75 63 63 65 73 | 73 29 3b 0a 0a 20 20 20 |ogSucces|s);.. | |00006000| 20 74 68 69 73 2e 72 65 | 71 75 65 73 74 20 3d 20 | this.re|quest = | |00006010| 6e 75 6c 6c 3b 20 2f 2f | 20 66 6f 72 63 65 20 74 |null; //| force t| |00006020| 68 65 20 78 6d 6c 20 68 | 74 74 70 20 72 65 71 75 |he xml h|ttp requ| |00006030| 65 73 74 20 74 6f 20 67 | 6f 20 61 77 61 79 2e 20 |est to g|o away. | |00006040| 54 68 69 73 20 68 65 6c | 70 73 20 72 65 64 75 63 |This hel|ps reduc| |00006050| 65 20 73 6f 6d 65 20 6e | 61 73 74 79 20 61 73 73 |e some n|asty ass| |00006060| 65 72 74 69 6f 6e 73 20 | 6f 6e 20 73 68 75 74 20 |ertions |on shut | |00006070| 64 6f 77 6e 2e 20 0a 20 | 20 20 20 74 68 69 73 2e |down. . | this.| |00006080| 69 74 65 6d 73 54 6f 53 | 74 6f 72 65 20 3d 20 22 |itemsToS|tore = "| |00006090| 22 3b 0a 20 20 20 20 74 | 68 69 73 2e 69 74 65 6d |";. t|his.item| |000060a0| 73 54 6f 53 74 6f 72 65 | 49 6e 64 65 78 20 3d 20 |sToStore|Index = | |000060b0| 30 3b 0a 20 20 20 20 74 | 68 69 73 2e 73 74 6f 72 |0;. t|his.stor| |000060c0| 65 49 74 65 6d 73 54 69 | 6d 65 72 20 3d 20 6e 75 |eItemsTi|mer = nu| |000060d0| 6c 6c 3b 0a 20 20 7d 2c | 20 0a 0a 20 20 6e 6f 74 |ll;. },| .. not| |000060e0| 69 66 79 3a 20 66 75 6e | 63 74 69 6f 6e 28 61 54 |ify: fun|ction(aT| |000060f0| 69 6d 65 72 29 20 0a 20 | 20 7b 0a 20 20 20 20 74 |imer) . | {. t| |00006100| 68 69 73 2e 73 74 6f 72 | 65 4e 65 78 74 49 74 65 |his.stor|eNextIte| |00006110| 6d 28 29 3b 0a 20 20 7d | 2c 20 0a 0a 20 20 51 75 |m();. }|, .. Qu| |00006120| 65 72 79 49 6e 74 65 72 | 66 61 63 65 3a 20 66 75 |eryInter|face: fu| |00006130| 6e 63 74 69 6f 6e 28 61 | 49 49 44 29 20 0a 20 20 |nction(a|IID) . | |00006140| 7b 0a 20 20 20 20 69 66 | 20 28 61 49 49 44 2e 65 |{. if| (aIID.e| |00006150| 71 75 61 6c 73 28 43 6f | 6d 70 6f 6e 65 6e 74 73 |quals(Co|mponents| |00006160| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 54 |.interfa|ces.nsIT| |00006170| 69 6d 65 72 43 61 6c 6c | 62 61 63 6b 29 20 7c 7c |imerCall|back) ||| |00006180| 20 61 49 49 44 2e 65 71 | 75 61 6c 73 28 43 6f 6d | aIID.eq|uals(Com| |00006190| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac| |000061a0| 65 73 2e 6e 73 49 53 75 | 70 70 6f 72 74 73 29 29 |es.nsISu|pports))| |000061b0| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 74 68 |. r|eturn th| |000061c0| 69 73 3b 0a 0a 20 20 20 | 20 43 6f 6d 70 6f 6e 65 |is;.. | Compone| |000061d0| 6e 74 73 2e 72 65 74 75 | 72 6e 43 6f 64 65 20 3d |nts.retu|rnCode =| |000061e0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 72 65 73 75 | Compone|nts.resu| |000061f0| 6c 74 73 2e 4e 53 5f 45 | 52 52 4f 52 5f 4e 4f 5f |lts.NS_E|RROR_NO_| |00006200| 49 4e 54 45 52 46 41 43 | 45 3b 0a 20 20 20 20 72 |INTERFAC|E;. r| |00006210| 65 74 75 72 6e 20 6e 75 | 6c 6c 3b 20 20 20 20 0a |eturn nu|ll; .| |00006220| 20 20 7d 0a 7d 3b 0a 0a | 50 4b 03 04 0a 00 00 00 | }.};..|PK......| |00006230| 00 00 cd b0 34 33 91 74 | f8 90 32 47 00 00 32 47 |....43.t|..2G..2G| |00006240| 00 00 26 00 00 00 63 6f | 6e 74 65 6e 74 2f 6d 65 |..&...co|ntent/me| |00006250| 73 73 65 6e 67 65 72 2d | 6e 65 77 73 62 6c 6f 67 |ssenger-|newsblog| |00006260| 2f 46 65 65 64 49 74 65 | 6d 2e 6a 73 2f 2f 40 6c |/FeedIte|m.js//@l| |00006270| 69 6e 65 20 33 37 20 22 | 2f 62 75 69 6c 64 2f 62 |ine 37 "|/build/b| |00006280| 75 69 6c 64 64 2f 6d 6f | 7a 69 6c 6c 61 2d 74 68 |uildd/mo|zilla-th| |00006290| 75 6e 64 65 72 62 69 72 | 64 2d 31 2e 35 2e 30 2e |underbir|d-1.5.0.| |000062a0| 31 30 2f 62 75 69 6c 64 | 2d 64 69 72 2f 6d 6f 7a |10/build|-dir/moz| |000062b0| 69 6c 6c 61 2f 6d 61 69 | 6c 2f 65 78 74 65 6e 73 |illa/mai|l/extens| |000062c0| 69 6f 6e 73 2f 6e 65 77 | 73 62 6c 6f 67 2f 63 6f |ions/new|sblog/co| |000062d0| 6e 74 65 6e 74 2f 46 65 | 65 64 49 74 65 6d 2e 6a |ntent/Fe|edItem.j| |000062e0| 73 22 0a 0a 2f 2f 20 48 | 61 6e 64 79 20 63 6f 6e |s"..// H|andy con| |000062f0| 76 65 72 73 69 6f 6e 20 | 76 61 6c 75 65 73 2e 0a |version |values..| |00006300| 63 6f 6e 73 74 20 48 4f | 55 52 53 5f 54 4f 5f 4d |const HO|URS_TO_M| |00006310| 49 4e 55 54 45 53 20 3d | 20 36 30 3b 0a 63 6f 6e |INUTES =| 60;.con| |00006320| 73 74 20 4d 49 4e 55 54 | 45 53 5f 54 4f 5f 53 45 |st MINUT|ES_TO_SE| |00006330| 43 4f 4e 44 53 20 3d 20 | 36 30 3b 0a 63 6f 6e 73 |CONDS = |60;.cons| |00006340| 74 20 53 45 43 4f 4e 44 | 53 5f 54 4f 5f 4d 49 4c |t SECOND|S_TO_MIL| |00006350| 4c 49 53 45 43 4f 4e 44 | 53 20 3d 20 31 30 30 30 |LISECOND|S = 1000| |00006360| 3b 0a 63 6f 6e 73 74 20 | 4d 49 4e 55 54 45 53 5f |;.const |MINUTES_| |00006370| 54 4f 5f 4d 49 4c 4c 49 | 53 45 43 4f 4e 44 53 20 |TO_MILLI|SECONDS | |00006380| 3d 20 4d 49 4e 55 54 45 | 53 5f 54 4f 5f 53 45 43 |= MINUTE|S_TO_SEC| |00006390| 4f 4e 44 53 20 2a 20 53 | 45 43 4f 4e 44 53 5f 54 |ONDS * S|ECONDS_T| |000063a0| 4f 5f 4d 49 4c 4c 49 53 | 45 43 4f 4e 44 53 3b 0a |O_MILLIS|ECONDS;.| |000063b0| 63 6f 6e 73 74 20 48 4f | 55 52 53 5f 54 4f 5f 4d |const HO|URS_TO_M| |000063c0| 49 4c 4c 49 53 45 43 4f | 4e 44 53 20 3d 20 48 4f |ILLISECO|NDS = HO| |000063d0| 55 52 53 5f 54 4f 5f 4d | 49 4e 55 54 45 53 20 2a |URS_TO_M|INUTES *| |000063e0| 20 4d 49 4e 55 54 45 53 | 5f 54 4f 5f 4d 49 4c 4c | MINUTES|_TO_MILL| |000063f0| 49 53 45 43 4f 4e 44 53 | 3b 0a 63 6f 6e 73 74 20 |ISECONDS|;.const | +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.